Since 4/2/2012 5:56:40 AM, cooljake has written 1 articles and participated in 0 conversations. cooljake signature: cooljake
cooljake's articles:
Items(4) /1
get number at end of string1728 (3/9/2005 5:35:10 PM) comp.lang.c Here is a function I have to get a number at the end of a string. I'm posting this in case it proves helpful to someone. Comments are welcome. int getnum(char *str) { char buffer[BUFSIZE]; char *buf ... jake1138
string validation for int and long (strisint, strislong)929 (2/24/2005 11:53:10 PM) comp.lang.c Maybe this is a newbie thing and everyone already knows how to do this, but I figured I'd post these functions anyway in case someone finds them useful. I used Jack Klein's example (see link below) and made fu... jake1138
Q: Why does this match not work?553 (2/8/2005 9:33:44 PM) comp.lang.perl.misc Can anyone explain this to me? This works: while() { chop; if (/^int config_write\s*\(.*\)\s*[^;]?\s*$/i) { print "$_\n"; } if (/^int config_read\s*\(.*\)\s*[^;]?\s*$/i) { print "$_\n"; } } ... jake1138
Macro Variable Argument List with __FILE__ and __LINE__543 (2/4/2005 5:14:53 PM) comp.lang.c I couldn't find an example of this anywhere so I post it in the hope that someone finds it useful. I believe this is compiler specific (I'm using gcc), as C99 defines __VA_ARGS__. Comments are welcome. This ... jake1138