I asked ... for learning purposes.
There's millions of things we learn, we don't actually use. I saw a post were you could toggle case of a string with a bitwise operation:
...
Type: Posts; User: tibegato
I asked ... for learning purposes.
There's millions of things we learn, we don't actually use. I saw a post were you could toggle case of a string with a bitwise operation:
...
First off thank you, for your corrections on the code sample. You are correct.
Second, no one asked if comparing strings using bitwise operators was good or bad. Just want to know how. ...
I just don't want to use any built-in functions. Also, want to learn something.
Otherwise, I can just use if (a == b).
How do you use bitwise logic to compare char *?
char *a = "car";
char *b = "carb";
char *c = "";
//bitwise logic
//if a equals b print "yes"
I am using c syntax.
Anyhow, I still want to do it without using any libraries. These functions need to be "pure", generic'ish, and easily be modified.
I know, my first approach has BIG...
I'm taking in an input string, parsing it, and separating the items into arrays. From what I can tell, everything is getting parsed correctly. But, If I iterate of the arrays, I don't get the...
I'm just learning c and I barely understand what I'm doing. I have a buffer and I want to chop a word off the front, one at a time and then do something with it. Guess, I need a pointer to the...