mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Added strtof(), llabs(), lldiv(), vsscanf() and vscanf() for C99.
- strftime() now supports %C, %n, %r, %R, %t, %T, %u, %V, and %z for C99. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14930 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio.h,v 1.11 2005-04-04 10:10:02 obarthel Exp $
|
||||
* $Id: stdio.h,v 1.12 2005-05-07 13:21:49 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@@ -424,6 +424,8 @@ extern int __vasprintf(const char *file,int line,char **ret,const char *format,v
|
||||
/****************************************************************************/
|
||||
|
||||
extern int vfscanf(FILE *stream, const char *format, va_list arg);
|
||||
extern int vsscanf(const char *s, const char *format, va_list arg);
|
||||
extern int vscanf(const char *format,va_list arg);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdlib.h,v 1.9 2005-04-03 10:22:48 obarthel Exp $
|
||||
* $Id: stdlib.h,v 1.10 2005-05-07 13:21:49 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@@ -153,16 +153,6 @@ extern int rand_r(unsigned int * seed);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
/* These functions are unavailable under SAS/C for lack of a
|
||||
"long long" data type. */
|
||||
#if ! defined(__SASC)
|
||||
extern long long strtoll(const char *str, char **ptr, int base);
|
||||
extern unsigned long long strtoull(const char *str, char **ptr, int base);
|
||||
extern long long atoll(const char *str);
|
||||
#endif /* __SASC */
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#undef alloca
|
||||
#define alloca(size) __builtin_alloca(size)
|
||||
@@ -192,6 +182,35 @@ extern char * mkdtemp(char *name_template);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
/* These functions and data structures are unavailable under SAS/C for lack
|
||||
of a "long long" data type. */
|
||||
#if ! defined(__SASC)
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
extern long long strtoll(const char *str, char **ptr, int base);
|
||||
extern unsigned long long strtoull(const char *str, char **ptr, int base);
|
||||
extern long long atoll(const char *str);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct { long long quot; long long rem; } lldiv_t;
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
extern long long llabs(long long x);
|
||||
extern lldiv_t lldiv(long long n,long long d);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
#endif /* __SASC */
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
extern float strtof(const char *str, char ** ptr);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
extern void _Exit(int status);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user