User Profile
Collapse
-
Thank you... but what is the ISO standard way to convert ints to ASCII? According to man itoa it doesn't fall under standard C. -
Incompatible types problem in C / Variable Problem
I have two quick problems with the code I am writing:
First, I define a struct of char arrays (strings) and then try accessing the same. I get an "incompatib le types in assignment" error:
...Code:struct { char name[50]; char value[50]; } varlist[20]; int main(int argc, char *argv[]) { varlist[0].name = "foo"; varlist[0].value = "bar";
No activity results to display
Show More
Leave a comment: