| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Comments:
<0> Because you can see if that single character is contained in a string of "acceptable" characters. <1> oh so like <1> strchr(buff,'a','%'); <1> ? <0> No. <1> =[ <0> You are completely guessing. <1> ohhhhhhhhh <1> lol now i get it <1> like checking the charcters i want with strchr instead of checking the buffer <1> ? <0> Well I can never tell exactly what you're trying to say, but that sounds like you might be right. <1> ah k <2> is double indirect go something like this? ***uming blocksize is 4kb, pointer is 4bytes... Direct blocks (11*4) + Single-Indirect (4kb/4) + Double Indirect (4kb/4)^2??? <3> Time is 12:51am, computer has been up for 1w 4d 4h 34m 3s <1> http://rafb.net/paste/results/cTQISD19.html <-- why doesnt this work?
<0> Probably because you don't know how strstr() works. There's probably a good reason I recommended strchr(). <1> oh <1> lol wrote wrong function in <4> i love you guys. <1> http://rafb.net/paste/results/M2xMnj81.html <-- why doesnt this work? <0> I don't know, why? <1> you tell me. <4> kthx^: how long have you been coding in c? <1> about half a year <4> cool. <1> why <1> is my code that BAD? <4> just curious. <1> k <4> if you think it is... <1> rofl <0> I can't tell you why it doesn't work. <0> Do you know why? <4> nope. <0> Because "doesn't work" is a TERRIBLE description of the problem. <1> oh <5> lol <1> well its letting charcters come in which should <1> shouldnt <1> like <0> Do you know what" break" does? <1> A <1> yeah breaks loop <0> Do you see what will happen in your function when you use "break"? <1> doesnt it skip to ++? <0> Wow, that doesn't make any sense. <1> the 3rd part in a for loop <1> normally ++ <0> Are you asking if it will continue on to the next iteration of the loop? If so, no. <1> oh <1> interesting <1> im sure ive doine somthing like that with break and its skipped b4 <0> As a quick fix, you might be interested in "continue". <1> yeah doesnt that just retry though <0> So far you haven't been very successful in guessing how things work. <1> it still doesnt work and i remved break :/ <1> wait it kinda is <0> a) You're ***uming I know what your code currently looks like b) "doesnt work", apart from missing an apostrophe, is still not a good description of what's going wrong. <1> wtf <1> for some reason its letting messed up charcters p*** through from charcter map <5> do you only want to verify (as in "accept") characters that are in iCharacters? <1> yes <4> stop your programming, angelina jolie is on cnn! <1> anything else i want to be a ' ' <5> why do you want everything to be that btw? <6> phugh give us a link to i-net broadcat! <1> its filtering for a chat server <1> ;/ <5> so basically you're gonna run in all the text from a chat server and if a message like "hey!" comes in, then the receivebuffer becomes " !"? <1> no <1> if a msg comes in with like <1> stuff from charcter map like arabic <1> itll become a blank space <1> or i might to decide to just just ZeroMemory the buffer <1> ok i got it to work <1> if i only use strchr seems isalnum is a P.O.S
<1> ;] <1> thx for help. <5> you're using continue right? <1> no <1> im using this <1> 1sec <1> http://rafb.net/paste/results/0PI5rV76.html <1> i havnt cleaned it up yet <1> ;] <5> ye that is better <7> kthx^: isn't this what strtok() is for? <1> umm no? <1> this is charcters i WANT <1> strtok will remove the ones i wan... <7> so take the complement of your set of characters. <1> plus it messes the original buffer up <1> complement? <1> ;/ <7> you're messing the original buffer up to begin with. <1> umm yes <1> but only with bad charcters <1> strtok will mess with good charcters <1> ;D <2> is double indirect go something like this? ***uming blocksize is 4kb, pointer is 4bytes... Direct blocks (11*4) + Single-Indirect (4kb/4) + Double Indirect (4kb/4)^2??? <8> how do you open .i686 files in linux ? <9> hmm... need a key again <9> anyway, what is a nice quick and nasty way to get the current directory <9> that doesn't have to be standard, does gcc have any non-standard functions <10> getcwd() is standard. <9> cool, thank you <10> The getcwd() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1''). <9> i am using mingw <8> aedinius: do you know how to open .i686 files in linux ? <9> so, i still should be alright <10> dift, What is a .i686 file? <8> dont know :) <10> Heh. <10> Everyone loves my buddy icon/login picture <10> http://shocker69ok.tripod.com/sitebuildercontent/sitebuilderpictures/shocker.jpg <10> And the reason why: http://abenson.kvanals.org/Mobius/CIMG0065.JPG http://abenson.kvanals.org/Mobius/CIMG0068.JPG http://abenson.kvanals.org/Mobius/CIMG0069.JPG <10> Everyone I worked with was obsessed with it <11> http://abenson.kvanals.org/Mobius/CIMG0065.JPG <11> i'm not familiar with this gesture <12> aedinius, but do they really *love* it? <13> Mish, http://en.wikipedia.org/wiki/Shocker_%28hand_gesture%29 <14> ehm, why does it seem like char x[] = "."; char y[] = ";"; strcmp(x,y)==0 is true? i mean, their not the same? <14> am i missing something fairly obvious? <11> this strcmp returns -1 for me <11> no 0 <14> hmm <11> you are missing something obvious <14> mine returns 0 ... wtf <11> if you have complete code unde 25 lines, post in (no on the chan) <11> s/in/it/ <11> calc paste <15> Please paste your code (or a complete example that demonstrates your problem) here: http://rafb.net/paste/ <14> hold on ima try to debug it myself first... ill hollar if i do a nopaste <16> i need some help and an idea. i want to continously read(); from a socket, but in the same time write(); to it.. <16> any idea of what structures i ahve to use? <17> say i have a label, can i read the first 4 bytes of code of it? something like <17> boro:__asm("movl $0xdead, %eax\n"); <17> printf("%X\n",boro); <11> BoRO: not instandard C <11> BoRO: in gcc, probably <17> gcc is what im trying :) <11> BoO: yes you can in gcc <11> BoRO: http://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html#Labels-as-Values <17> thanks <17> worked :) <14> is there a way to get the length of the information stored in a pointer? <14> i.e char *ptr = "whatever"; <-- kindof <14> i first tried doing a standard while !='\0' loop but somehow that borks.. <16> Caligo, strlen maybe? <14> strlen gives 4 .. and the length of the data is FAR longer than that
Return to
#c or Go to some related
logs:
#politics gdm doesnt use /etc/securetty luborz #politics #flash statedeparment #netbsd #netbsd #politics #beginner
|
|