EmbLogic's Blog

HOW TO USE atoi() function for conversion of strings into integers……..

RCS file: atoi.c,v

3 Working file: atoi.c

4 head: 1.3

5 branch:

6 locks: strict

7 access list:

8 symbolic names:

9 keyword substitution: kv

10 total revisions: 3; selected revisions: 3

11 description:

12 this program tells the use of atoi() function

13 the atoi function is declared in the header file stdlib.h

14 in this program the string to be converted into integer contains numeric characters in the starting

15 the atoi converts the numeric characters encountered in string before encountering any alphabet or any special symbol into an inte ger

16 the atoi function returns the integer converted from string

17 —————————-

18 revision 1.3

19 date: 2014/03/13 06:00:49; author: root; state: Exp; lines: +1 -1

20 this revision of program uses atoi() functon to convert a string starting with special symbols or characters

21 he function returns 0

22 —————————-

23 revision 1.2

24 date: 2014/03/13 05:58:47; author: root; state: Exp; lines: +1 -1

25 this revision of the program has converted a string which is starting with alphaets

26 in this the atoi function returns 0

27 —————————-

28 revision 1.1

29 date: 2014/03/13 05:54:27; author: root; state: Exp;

30 Initial revision

31 =============================================================================

~

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>