You want strtol
or strtoul
. See also the Unix man page
More Related Contents:
- how to show time performance for merge sort? [closed]
- how to convert .c file to .hex file and load it on AVR microcontroller?
- Why does the order of the loops affect performance when iterating over a 2D array?
- Is there a performance difference between i++ and ++i in C?
- How do you convert a byte array to a hexadecimal string in C?
- What do numbers using 0x notation mean?
- In an OpenMP parallel code, would there be any benefit for memset to be run in parallel?
- Which ordering of nested loops for iterating over a 2D array is more efficient [duplicate]
- Is it faster to count down than it is to count up?
- Loop with function call faster than an empty loop
- Is a Recursive-Iterative Method Better than a Purely Iterative Method to find out if a number is prime?
- Why vectorizing the loop does not have performance improvement
- How to do unsigned saturating addition in C?
- Is Fortran easier to optimize than C for heavy calculations?
- How to get 100% CPU usage from a C program
- Measuring Cache Latencies
- Cache size estimation on your system?
- Do temp variables slow down my program?
- How to turn a hex string into an unsigned char array?
- hexadecimal floating constant in C
- Why is memcmp so much faster than a for loop check?
- atol() v/s. strtol()
- faster alternative to memcpy?
- Algorithm to find all the exact divisors of a given integer
- Which is better way to calculate nCr
- Faster approach to checking for an all-zero buffer in C?
- How to convert a hexadecimal string to a binary string in C
- Performance: memset
- Why vectorizing the loop over 64-bit elements does not have performance improvement over large buffers?
- printf() formatting for hexadecimal