The Dink Network

Reply to Re: C Programming Tutorial

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
November 29th 2005, 01:45 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
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?