strtoll man page on Cygwin

Man page or keyword search:  
man Server   22533 pages
apropos Keyword Search (all sections)
Output format
Cygwin logo
[printable version]

STRTOLL(3)			    NEWLIB			    STRTOLL(3)

NAME
       2.36 `strtoll'--string to long long

SYNOPSIS
	    #include <stdlib.h>
	    long long strtoll(const char *S, char **PTR,int BASE);

	    long long _strtoll_r(void *REENT,
		const char *S, char **PTR,int BASE);

DESCRIPTION
       The  function  `strtoll'	 converts  the	string	`*S' to a `long long'.
       First, it breaks down the string into three parts: leading  whitespace,
       which  is ignored; a subject string consisting of characters resembling
       an integer in the radix specified by BASE; and a trailing portion  con‐
       sisting	of  zero  or more unparseable characters, and always including
       the terminating null character. Then, it attempts to convert  the  sub‐
       ject string into a `long long' and returns the result.

	  If  the  value  of BASE is 0, the subject string is expected to look
       like a normal C integer constant: an optional sign, a  possible	``0x''
       indicating  a  hexadecimal base, and a number. If BASE is between 2 and
       36, the expected form of the subject is a sequence of letters and  dig‐
       its  representing  an  integer  in the radix specified by BASE, with an
       optional plus or minus sign. The	 letters  `a'-`z'  (or,	 equivalently,
       `A'-`Z')	 are  used to signify values from 10 to 35; only letters whose
       ascribed values are less than BASE are permitted.  If  BASE  is	16,  a
       leading `0x' is permitted.

	  The  subject	sequence  is the longest initial sequence of the input
       string that has the expected form, starting with the  first  non-white‐
       space character.	 If the string is empty or consists entirely of white‐
       space, or if the first non-whitespace character is  not	a  permissible
       letter or digit, the subject string is empty.

	  If  the subject string is acceptable, and the value of BASE is zero,
       `strtoll' attempts to determine the radix  from	the  input  string.  A
       string  with a leading `0x' is treated as a hexadecimal value; a string
       with a leading 0 and no `x' is treated as octal; all other strings  are
       treated as decimal. If BASE is between 2 and 36, it is used as the con‐
       version radix, as described above. If the subject string begins with  a
       minus sign, the value is negated. Finally, a pointer to the first char‐
       acter past the converted subject string is stored in PTR, if PTR is not
       `NULL'.

	  If  the subject string is empty (or not in acceptable form), no con‐
       version is performed and the value of S is stored in PTR (if PTR is not
       `NULL').

	  The  alternate  function  `_strtoll_r'  is a reentrant version.  The
       extra argument REENT is a pointer to a reentrancy structure.

RETURNS
       `strtoll' returns the converted value, if any.  If  no  conversion  was
       made, 0 is returned.

	  `strtoll'  returns  `LONG_LONG_MAX' or `LONG_LONG_MIN' if the magni‐
       tude of the converted value is too large, and sets `errno' to `ERANGE'.

PORTABILITY
       `strtoll' is ANSI.

	  No supporting OS subroutines are required.

SEE ALSO
       strtoll is part of the library.	The full documentation	for  is	 main‐
       tained as a Texinfo manual.  If info and are properly installed at your
       site, the command

	      info

       will give you access to the complete manual.

NEWLIB				  April 2010			    STRTOLL(3)
[top]

List of man pages available for Cygwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net