@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> has to got today NOW 2 dell xps m1710 laptops. price 500 for one 650 for both. price includes sameday shippig, case, wireless router. specs: intel centrino duo core t2500 2.0ghz, 2gb ddr2 ram, 100gb sata hard drive, dvdrw/cdrw, built in modem, ethernet, firewire, usb2.0, 802.11b/g wireless, 256mb nvidia geforce 7900 gs, 17.1" uwxga. message me on msn at openmike1981@hotmail.com or itscrazymikeeh on aim
<1> Oh, oh, I'll take both!
<1> Just mail them to me.
<1> I'll pay you later.
<0> has to got today NOW 2 dell xps m1710 laptops. price 500 for one 650 for both. price includes sameday shippig, case, wireless router. specs: intel centrino duo core t2500 2.0ghz, 2gb ddr2 ram, 100gb sata hard drive, dvdrw/cdrw, built in modem, ethernet, firewire, usb2.0, 802.11b/g wireless, 256mb nvidia geforce 7900 gs, 17.1" uwxga. message me on msn at openmike1981@hotmail.com or itscrazymikeeh on aim
<1> And here I was, looking forward to a fancy new laptop.
<2> they were Toshiba laptops too
<1> I'm not sure if that's good or bad. :-/
<3> Hi.
<4> (Read error: Connection reset by peer) <---- this just in errno? wheres a list of these?
<4> duu therres an errno man page
<5> winkey, yep
<6> if(isprint(data[i])) { sprintf(Log,"%s%c",Log, data[i]); t++;} <== is there some better function then sprintf here to add data[] to Log char ?
<6> it has a loop
<4> can i see what you have the whole function
<5> Fidelz, and use a paste site. http://rafb.net/paste/



<6> http://www.delikon.de/codes/raw.txt
<6> I want to convert void print_data(int datalen, char *data)
<6> to char *print_data() thats why I need that to return a value
<5> Fidelz, what happens if datalen == 37 ?
<6> its %
<6> I did msgbox chr(37) in vb
<6> lol
<6> why ?
<5> look at your loop in print_data and try to think what happens if datalen is less than 38
<6> may crash ?
<5> Fidelz, I said try to think, not try to guess.
<6> dunno ?
<6> but I gonna use strncat() brb
<5> i != datalen
<4> strncat is slow
<5> if i ==38 and datalen == 37
<4> its faster to use pointer arithmitic
<5> winkey, and well... your program is a mess. you're mixing everything. function prototypes, variables declarations and so on
<5> err
<5> Fidelz, I meant you.
<5> Fidelz, do you have a C book?
<6> it isnt my program....
<6> I found it
<5> Fidelz, if yes, it would probably be good to start to read it.
<6> dont got I only got msdn on favorite
<6> lol
<5> I dont think Microsoft recommends to program that way..
<5> and msdn is a help about functions mainly. It wont help you learn how to program
<6> I think I got time enough for do that if I can find a book :\ or e-book
<6> btw how can I read about port redirection / bouncing etc.. couldnt find a good code they aren't multi thread just work for the first SOCKET
<5> Fidelz, just a guideline http://rafb.net/paste/results/6ihBAV15.html
<5> Fidelz, this is how you should basicly structure your program
<6> btw isnt strcpy() dangerous
<6> only when using argv[] or other dynamic data right that can overflow the stack
<5> Fidelz, many functions can be dangerous if you dont know how to use them.
<7> including printf
<6> but I think sprintf() is secure
<6> ow realy ?
<5> BryinAFK, yes, as we said the other day.
<5> BryinAFK, hmm..%n
<5> winkey, that's a font.
<8> who is here?
<9> i am, for a short time.
<8> ok
<8> is there an algorith for calculating exressions like : ((7 +&)*9) etc?
<8> is there an algorith for calculating exressions like : ((7 +5)*9) etc?
<8> is there an algorithm for calculating exressions like : ((7 +5)*9) etc?
<8> sorry
<9> algorithm for simply arithmetic?
<8> yes
<9> i wouldn't expect it.
<8> expext what?
<8> bbl
<9> i would not expect there to be an algorithm for an apparently arbitrary simple arithmetic expression.
<8> ok
<8> ma where is .ma?
<10> dead
<8> who?
<11> thanks
<8> ma so where is .ma?
<11> can i ask a kestion?



<12> how do compilers compile themselves?
<13> same way they compile anything else
<13> they take source as input and compile it to something else. doesn't matter what the source is
<12> howe was the very first compiler compiled?
<13> it wasn't
<8> ty
<8> hi amiga
<4> c-bot va_start
<14> winkey, here you go: va_start - #include <stdarg.h> void va_start (va_list ap, last-required) Argument Access Macros (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_34.html#SEC674 [1]
<4> c-bot printf
<14> winkey, here you go: printf - #include <stdio.h> int printf (const char *template, ...) Formatted Output Functions (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_12.html#SEC196
<4> i need some way of testing for space other than a standard snprintf(NULL, 0)...
<4> half tempted to write my own from scratch
<4> after lookiung at a few examples via google i will say a fully working printf does not look trivial
<15> test for space?
<16> salz all
<17> why cant the compiler tell me at compilation time about say a buffer overflow?
<4> [aG]Sociopat well for one hgow would it know?
<17> it would test every possible input by the user
<4> lol
<4> it ***umes your code does that
<15> it can't
<17> c is almost as primitive as the middle east...
<4> its suposed to be primitive
<15> == easy
<4> lets ya do things like while (*buf1+ = *buf2++);
<4> oops
<4> oopswhile (*buf1++ = *buf2++);
<4> thast would ***ume that char *buf2 is terminated with a \0
<4> otherwise your gona fall down and go boom
<17> a \0 wont stop the while
<17> unless there is an inner case to break it that while means disaster
<4> [aG]Sociopat since when won't a result of 0 stop a while?
<4> asignment returns what was ***igned
<17> oh you used ***ignment
<17> sorry
<17> buf needs to be big enough to contain buf2 tho right?
<4> it ***umes that
<17> how do I know when I should use a pointer and when I should use an &varname ?
<4> c-bot tell [aG]Sociopat about strcpy
<14> [aG]Sociopat, here you go: strcpy - #include <string.h> char * strcpy (char *restrict to, const char *restrict from) Copying and Concatenation (ISO) see - http://www.msunix.co.uk/manual/glibc-2.2.3/html_chapter/libc_5.html#SEC74
<17> how do I know when I should use a pointer and when I should use an &varname ???
<4> well
<4> thats not a one line awnser
<17> cant you sum it to a few sentences?
<15> when there is a need for a pointer, you use a pointer. When there is a need to get the address of something, you use &
<17> EwIck : hmmm... you aren't helpful
<4> you can use a pointer to point at a normal var with ptr = &var
<15> of course I am, that's all there is to it
<4> or you can just use a pointer then alocate memory for it
<4> c-bot tell [aG]Sociopat about pointers
<14> [aG]Sociopat, here you go: Pointer Tutorial: http://pw2.netcom.com/~tjensen/ptr/cpoint.htm
<4> hello tamma
<4> temama even
<4> ohh man i should just give up the keyboard
<4> but if i used voice reconition software you guys would figure out that i sometimes stuttur
<4> c-bot tell [aG]Sociopat about k&r
<14> [aG]Sociopat, here you go: Kernighan and Ritchie, The C Programming Language http://www.amazon.com/exec/obidos/ASIN/0131103628/qid=1013972271/sr=1-1/ref=sr_1_1/104-2008933-0769502
<4> whats the hard way to convert a int to a string?
<18> compared to the easy way?
<4> no sprintf ;-)
<4> or any others in that family
<4> kinda like the methods for converting hex to whatever on paper?
<18> why
<4> http://rafb.net/paste/results/ExlOLm49.html
<18> yea, that would be it, but divide by 10 instead of 2 or 16
<18> seems like an exercise in futility
<4> whys that?
<15> why are you not using sprintf?
<15> or snprintf?
<4> because there is no way to continue printing from where a previous call to snprintf left off
<15> eh... no, but you can increase the buffer size and try again
<4> if its just looped and will still fit then theres no reason to increase the buffer size


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c
or
Go to some related logs:

hotmail php junkmail
upsmon91a.tar
WHAT GERMANIC RACE GAVE ITS NAME TO ACTS OF WANTON DESTRUCTION ?
#MissKitten
#mirc
#linux
#php
#php
#linux
efnet gline shortest



Home  |  disclaimer  |  contact  |  submit quotes