Reply to Re: C Programming Tutorial
If you don't have an account, just leave the password field blank.
As I probably told you before, I learned Pascal at school, and this year I'm trying to learn C. In Pascal, I had a special data type called "string". Instead of typing
char s[256];
I was typing
s: string;(in pascal, when I declare a data I put the varaible first)
There was a function called val:
void val(string s, int x, int err);
If the chars contained by s were digits, then x would become the number value contained in s. If not, the err varaible would indicate the position of the first non-digit char.
Is anything similar in C? Can you indicate me a good tutorials about strings, in C?
char s[256];
I was typing
s: string;(in pascal, when I declare a data I put the varaible first)
There was a function called val:
void val(string s, int x, int err);
If the chars contained by s were digits, then x would become the number value contained in s. If not, the err varaible would indicate the position of the first non-digit char.
Is anything similar in C? Can you indicate me a good tutorials about strings, in C?