How do I find if a piece of string (let's say, "CDEFG") occurs in a string (let's say, "ABCDEFGHIJKLMNOP") in C?if it occurs, i want to get a 'true' value.if it doesn't occur, i want to get a 'false'...
Type: Posts; User: milo64
How do I find if a piece of string (let's say, "CDEFG") occurs in a string (let's say, "ABCDEFGHIJKLMNOP") in C?if it occurs, i want to get a 'true' value.if it doesn't occur, i want to get a 'false'...
Dis thread iz now solved! C:
Ok thanks all.
Heya!
What is the difference between a cast:
(long) 10000000
And a something:
10000000L
Anyway, i changed it to this way:
for (;; i++)
{
if (str[i] != '\0' && str[i] != ' ')
{
result[result_pos] = str[i];
result_pos++;
}
So, you mean, the != returns the false, so, i should find a kind of loop that would exit if the statement is false? right?
i don't understand. :/
i thought it would do:
str[i] is not equal to '\0'; ========>
+--------------+
...
I've received a segmentation fault in this part of code:
for (; str[i] != '\0' || str[i] != ' '; i++)
{
result[result_pos] = str[i];
result_pos++;
}
which, should mean:
Since Windows doesn't have man pages, where can I download them (hopefully, it comes in one zip file, each section in folders, page in HTML)?
I often go somewhere with no internet access and need...