|
| |||||||||||||
#include <libxode.h>#include <stdio.h>#include <ctype.h>#include <sys/types.h>#include <stdarg.h>#include <string.h>#include <stdlib.h>#include <math.h>Go to the source code of this file.
Data Structures | |
| struct | buf_area |
Defines | |
| #define | NDIG 80 |
| #define | FALSE 0 |
| #define | TRUE 1 |
| #define | NUL '\0' |
| #define | INT_NULL ((int *)0) |
| #define | WIDE_INT long |
| #define | S_NULL "(null)" |
| #define | S_NULL_LEN 6 |
| #define | FLOAT_DIGITS 6 |
| #define | EXPONENT_LENGTH 10 |
| #define | NUM_BUF_SIZE 512 |
| #define | INS_CHAR(c, sp, bep, cc) |
| #define | NUM(c) ( c - '0' ) |
| #define | STR_TO_DEC(str, num) |
| #define | FIX_PRECISION(adjust, precision, s, s_len) |
| #define | PAD(width, len, ch) |
| #define | PREFIX(str, length, ch) *--str = ch ; length++ ; has_prefix = YES |
Typedefs | |
| typedef WIDE_INT | wide_int |
| typedef unsigned WIDE_INT | u_wide_int |
| typedef int | bool_int |
| typedef buf_area | buffy |
Enumerations | |
| enum | boolean_e { NO = 0, YES = 1 } |
Functions | |
| int | ap_snprintf (char *buf, size_t len, const char *format,...) |
| int | ap_vsnprintf (char *buf, size_t len, const char *format, va_list ap) |
|
|
Definition at line 259 of file snprintf.c. |
|
|
Definition at line 245 of file snprintf.c. |
|
|
Value: if ( adjust ) \ while ( s_len < precision ) \ { \ *--s = '0' ; \ s_len++ ; \ } Definition at line 314 of file snprintf.c. |
|
|
Definition at line 258 of file snprintf.c. |
|
|
Value: { \
if ( sp < bep ) \
{ \
*sp++ = c ; \
cc++ ; \
} \
}
Definition at line 289 of file snprintf.c. |
|
|
Definition at line 248 of file snprintf.c. |
|
|
Definition at line 89 of file snprintf.c. |
|
|
Definition at line 247 of file snprintf.c. |
|
|
Definition at line 298 of file snprintf.c. |
|
|
Definition at line 266 of file snprintf.c. |
|
|
Value: do \ { \ INS_CHAR( ch, sp, bep, cc ) ; \ width-- ; \ } \ while ( width > len ) Definition at line 326 of file snprintf.c. |
|
|
Definition at line 338 of file snprintf.c. |
|
|
Definition at line 255 of file snprintf.c. |
|
|
Definition at line 256 of file snprintf.c. |
|
|
Value: num = NUM( *str++ ) ; \ while ( isdigit((int)*str ) ) \ { \ num *= 10 ; \ num += NUM( *str++ ) ; \ } Definition at line 300 of file snprintf.c. |
|
|
Definition at line 246 of file snprintf.c. |
|
|
Definition at line 249 of file snprintf.c. |
|
|
Definition at line 253 of file snprintf.c. |
|
|
Definition at line 277 of file snprintf.c. |
|
|
Definition at line 252 of file snprintf.c. |
|
|
Definition at line 251 of file snprintf.c. |
|
|
Definition at line 241 of file snprintf.c.
|
|
||||||||||||||||||||
|
Definition at line 912 of file snprintf.c. 00913 {
00914 int cc;
00915 va_list ap;
00916
00917 va_start(ap, format);
00918 strx_printv(&cc, buf, (len - 1), format, ap);
00919 va_end(ap);
00920 return (cc);
00921 }
|
|
||||||||||||||||||||
|
Definition at line 924 of file snprintf.c. 00925 {
00926 int cc;
00927
00928 strx_printv(&cc, buf, (len - 1), format, ap);
00929 return (cc);
00930 }
|
| Last updated at Tue Dec 18 21:07:42 PST 2007. | This site and project hosted by... |