![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting integer to String | ROOZ | Shell Programming and Scripting | 1 | 06-05-2008 10:38 AM |
| Function to return an array of integer | dwgi32 | High Level Programming | 2 | 11-19-2007 11:08 PM |
| conersting string to integer | abb058 | UNIX for Dummies Questions & Answers | 2 | 08-23-2006 04:52 AM |
| Integer to String | psilva | High Level Programming | 2 | 08-17-2001 09:14 AM |
| convert from an integer to a string | mojomonkeyhelper | UNIX for Dummies Questions & Answers | 6 | 03-29-2001 01:15 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
C function to test string or integer
Hi everyone ,
Is there any predefined C function that tests whether an input is string or an integer? Thank's in advance |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You can use strtol to convert the string to an integer. strtol can report on the first invalid character. No invalid characters means the entire string was an integer.
|
|
#3
|
|||
|
|||
|
I have tried it and it works. Thank's Perderabo!!
|
|
#4
|
|||
|
|||
|
I have tried it and it works. Thank's Perderabo!!
|
|||
| Google The UNIX and Linux Forums |