I myself mostly an editor guy, have found Aptana studio and its plugin radrails to be fuckomg awsome, now just one question, at hand, mongrel skeleton, is there a better one?
>>4
doescontain("1", isdigit); will not work.
Also, did you just learn about function pointers or what?
Also, it's buggy.
There are two bugs there and one is major.
>>8
Bug 1: while(*s++) is stupid. think.
Bug 2: what is passed to is/to[alpha|other] must be casted to (unsigned char). If you want your doescontain to work with any int(*)(int) then it is not possible to cast it inside the function. change the prototype to something more explicit
Bug 3: argc may be 0, which would mean there is no argv[1]. Your program would crash in the if check. use argc instead.
Name:
Anonymous2008-02-09 10:43
1. noted.
2. i use the same types that the is* functions are defined with.
3. argv[argc] is guaranteed to be NULL)
>>13 3. argv[argc] is guaranteed to be NULL)
Correct, read what I said. Bug 3: argc may be 0, which would mean there is no argv[1]. Your program would crash in the if check. use argc instead.
*argv is NULL and you dereference argv+1.
faggot.