Query: ustrtol
OS: debian
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ustrtol(3alleg4) Allegro manual ustrtol(3alleg4)NAMEustrtol - Converts a string into an integer. Allegro game programming library.SYNOPSIS#include <allegro.h> long ustrtol(const char *s, char **endp, int base);DESCRIPTIONThis function converts the initial part of `s' to a signed integer, setting `*endp' to point to the first unused character, if `endp' is not a NULL pointer. The `base' argument indicates what base the digits (or letters) should be treated as. If `base' is zero, the base is determined by looking for `0x', `0X', or `0' as the first part of the string, and sets the base used to 16, 16, or 8 if it finds one. The default base is 10 if none of those prefixes are found. Example: char *endp, *string = "456.203 askdfg"; int number = ustrtol(string, &endp, 10);RETURN VALUEReturns the string converted as a value of type `long int'. If nothing was converted, returns zero with `*endp' pointing to the beginning of `s'.SEE ALSOuconvert(3alleg4), ustrtod(3alleg4), uatof(3alleg4) Allegro version 4.4.2 ustrtol(3alleg4)
Related Man Pages |
---|
exmidi(3alleg4) - debian |
exmidi(3alleg4) - centos |
exrotscl(3alleg4) - netbsd |
exrotscl(3alleg4) - redhat |
exrotscl(3alleg4) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
awk or sed - Convert 2 lines to 1 line |
Introduction |
One instance of comparing grep and awk |
My first PERL incarnation... Audio Oscillograph |