| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> or rather: <0> char* x[1024] <- what type is x[1]? <1> sorry, I had to step away for a second <1> pointer to char? <1> is there a difference with where you put the * ? <0> char*, right <0> hell no, you can put the whitespace anywhere <1> okay <0> but i guess it's more ovious what's up in "char* p" <0> so... what's argv[1] again for a type? <1> pointer to char <0> char*, right <0> so... <0> <1> will port = argv[1] automatically convert numeric arguments to strings? <0> <1> as it is now, I can accept 80 or http <0> you're ***igning pointers there
<0> why do you think anything cares for what's in the memory those pointers point to <0> and why do you think anything would be converted, after looking? <2> okay, any Soekris users here? <1> I suppose they wouldn't <1> jlam- yes <0> mspo: indeed, no conversion happens. <2> Let me narrow that down a bit... any Soekris users that have set up a Soekris as a wireless router/AP? <1> hubertEF- okay, my program still works as expected without the sscanf <3> I think riz did <1> not me <2> yeah, but riz is off in releng-hell, so I'm loath to bug him right now. <4> is anyone on irc.he.net, or did it fall off? <3> shaded has a soekris but I don't recall him doing AP <0> mspo: try & see :) <0> mspo, I have a different question for you: <0> 80 <- what type does that literal have when put verbatim into a C program, e.g. as in i=80? <1> hubertEF- i=80 -> int, i = "80" -> char <1> I think <0> right <0> what happens when you write: int i="80"? <1> hmm <1> should give a casting warning? <0> why? <1> because it tries to force a "string literal" to an int <1> although the compiler says it tries to make a pointer an int <1> if I say i = '80'; <1> I get a whole different warning :) <0> well, what type is '80' ? <1> apparently, it's a multi character character constant <0> which means? <1> which means it's too big to fit into the normal storage for a singel char? <0> which means '80' is plain nonsense :) <1> well, maybe not too big, but just kind of wrong <0> 'x' is a 1-byte constant of type 'char' <0> *sigh* <0> can i just send you home to finish reading K&R and then come back? :) <0> i know there's many small differences in that stuff <1> so I was right the first time? <1> I read it <0> and everyone has quite some impact <0> but right now you seem to do mostly guesswork <1> okay <1> yes, I'm doing a fair amount of guessing, trialing, and erroring <0> <0> you can force a system into submission that way, during administration <0> try until it works <0> but for programming, you should KNOW what you do <0> else your code will be ... yuck :) <0> see bugtraq, security focus, etc. etc. etc. <1> I've seen it <1> that's why I was asking about the sscanf :) <1> hubertEF- http://www.reallygothic.com/nullserverd.c <-- full source <5> Intel Open Sources Graphics Drivers <5> very good <0> http://intellinuxgraphics.org/ <1> the os that supports all of those OTHER processors <0> mspo: they have :-) <1> hubertEF- intel hates netbsd <5> mspo: huh?
<0> why do you think so? <1> for giving life to old sparcs and alphas <0> nonsense <1> reuben- weren't you trying to find the last match in perl? <0> if anything, they love us fr running on all that ARM hardware <1> ;) <1> mm arm <1> mm small <1> speaking of intel, those new macs are pretty fancy <5> mspo: i was, before i figured out i needed to do more than that <1> reuben- okay <5> mspo: s/^\(.*\)\boldword\b/\1newword/ does it <1> okay <1> \1 is pretty old school <5> mspo: i use libc regex and sed <1> ah <1> reuben- that would explain it <6> hubertEF: no, but I intend to setup a recent Xen3 dom0 <5> what i actually needed to do was scan the string for any one in a set of newwords, and if none are found, then scan it for any one of the set of old words, and then replace the rightmost oldword with the corresponding newword <5> not exactly regex material <1> reuben- sounds like two regex :) <5> i'd like to see you do the second step in a regex <1> scan it for any one of the set of old words <1> that? <5> and replace only the rightmost one <5> http://nouveau.freedesktop.org/wiki/ <5> "If you don't patch Windows, the terrorists win!" <5> i wonder if it is difficult to convert commodity computers to use external power supplies <5> like something that plugs into a PCI slot and the power posts on the motherboard, fans, drives, etc <5> i mean the pci opening on the case <1> okay <1> reuben- I give up, but I know it can be done ;) <1> (?{? could save the day! <2> do what? <0> hmm, nice toys at http://www.ieiworld.com/en/product_IPC.asp?model=ECW-181B <0> i'm curious what the pricing is <7> hey mspo - i think that disklabel/rpm issue is a bug. i did a fresh install on the disk that showed 10k rpm..now its showing 3600. <1> bradd- ask on port-sparc or sparc64 <1> jlam- use only a regex to replace just the last entry of a string <1> well <1> replace the last occurance of something <1> in a list of possibly many things <2> I don't think it's possible to do that purely with regular expressions. <6> hubertEF: too bad it's Yet Another Crap86 Machine :) <0> tgen: yep <8> Good evening. <8> Oh. We're at 4.0_BETA? Summer's no good; I'm not up to date at all. <9> evening <1> reuben <1> echo "foo bar foo bar foo bar"|perl -ne 'while (m/foo/gc) { $x = $-[-1]; } pos() = $x; s/\Gfoo/bar/g; print' <1> that will always replace the last foo with bar <1> and only the last foo <8> michie1: Don't fix whats not broken. <1> reuben- I'll admin that's more than just one regex <10> ahoy there landlubbers :) <1> scardinal- are you on a cruise? <10> mspo: yeah.. surfin' the net ;) <1> cruise ships have internet <10> mspo: hehe naah.. I'm on land no ships nearby <1> reuben- even better: <1> echo "foo bar foo bar foo bar foo foo foo"|perl -ne 'm/foo(?{$x = $-[-1];})/gc; pos() = $x; s/\Gfoo/bar/g; print' <1> wait, that doesn't work <1> reuben- I like the first one I posted the best <1> reuben- while (m/foo/gc) { $x = $-[-1]; } pos() = $x; s/\Gfoo/bar/g; print <1> dsr- did you figure out your split thing? <11> fuufuuubaarbaar <12> mspo: yeah.. i figured it that moment i typed it here :) <12> s/that/the <1> okay <1> good <1> dsr- I was wondering if you were, possibly, suffering from the riz split problem <12> anyone has noticed, the the ath(4) monitor more doesn't p*** on 802.11 ACK frames ? <13> ?
Return to
#netbsd or Go to some related
logs:
#politics how to figure out harddisk2 #italy wrong number of type arguments; iwantads tcpoptimize
#nhl #beginner so2al jawab #beginner
|
|