Yea, I guess that would work. The reason I had it is this:
void skip_space(char** str)
{
for(; **str != '\0' && isspace(**str); (*str)++);
}
Type: Posts; User: yoshiznit123
Yea, I guess that would work. The reason I had it is this:
void skip_space(char** str)
{
for(; **str != '\0' && isspace(**str); (*str)++);
}
Hi, just a weird syntax-related question. Why can't I do this:
some_function( &(++x) );
where its passing a pointer to an already-incremented variable x? Seems to me it should be legal,...
There's a bunch of ways to do this, look up "sorting algorithms" on Wikipedia. The easiest is probably to do something like this:
int numbers[10]; //Containing your numbers
int min =...
Thanks man, I was hoping for an equivalent of the PHP addslashes() and stripslashes(), but whatever. :-) Thanks for the quick reply. By the way, looking through the coreutils printf(1) source, found...
Hi everyone,
This is my first post :-). I was wondering if there was a standard library function that converted between a literal string and its escaped C version.
For example, a function that...