Subversion Repositories Kolibri OS

Rev

Rev 4874 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 4921
Line 45... Line 45...
45
	_asnprintf_r
45
	_asnprintf_r
Line 46... Line 46...
46
 
46
 
47
ANSI_SYNOPSIS
47
ANSI_SYNOPSIS
Line 48... Line 48...
48
        #include 
48
        #include 
49
 
49
 
50
        int printf(const char *<[format]>, ...);
50
        int printf(const char *restrict <[format]>, ...);
51
        int fprintf(FILE *<[fd]>, const char *<[format]>, ...);
51
        int fprintf(FILE *restrict <[fd]>, const char *restrict <[format]>, ...);
52
        int sprintf(char *<[str]>, const char *<[format]>, ...);
52
        int sprintf(char *restrict <[str]>, const char *restrict <[format]>, ...);
53
        int snprintf(char *<[str]>, size_t <[size]>, const char *<[format]>,
53
        int snprintf(char *restrict <[str]>, size_t <[size]>, const char *restrict <[format]>,
54
                     ...);
54
                     ...);
55
        int asprintf(char **<[strp]>, const char *<[format]>, ...);
55
        int asprintf(char **restrict <[strp]>, const char *restrict <[format]>, ...);
Line 56... Line 56...
56
        char *asnprintf(char *<[str]>, size_t *<[size]>, const char *<[format]>,
56
        char *asnprintf(char *restrict <[str]>, size_t *restrict <[size]>, const char *restrict <[format]>,
57
                        ...);
57
                        ...);
58
 
58
 
59
        int _printf_r(struct _reent *<[ptr]>, const char *<[format]>, ...);
59
        int _printf_r(struct _reent *<[ptr]>, const char *restrict <[format]>, ...);
60
        int _fprintf_r(struct _reent *<[ptr]>, FILE *<[fd]>,
60
        int _fprintf_r(struct _reent *<[ptr]>, FILE *restrict <[fd]>,
61
                       const char *<[format]>, ...);
61
                       const char *restrict <[format]>, ...);
62
        int _sprintf_r(struct _reent *<[ptr]>, char *<[str]>,
62
        int _sprintf_r(struct _reent *<[ptr]>, char *restrict <[str]>,
63
                       const char *<[format]>, ...);
63
                       const char *restrict <[format]>, ...);
64
        int _snprintf_r(struct _reent *<[ptr]>, char *<[str]>, size_t <[size]>,
64
        int _snprintf_r(struct _reent *<[ptr]>, char *restrict <[str]>, size_t <[size]>,
65
                        const char *<[format]>, ...);
65
                        const char *restrict <[format]>, ...);
66
        int _asprintf_r(struct _reent *<[ptr]>, char **<[strp]>,
66
        int _asprintf_r(struct _reent *<[ptr]>, char **restrict <[strp]>,
Line 67... Line 67...
67
                        const char *<[format]>, ...);
67
                        const char *restrict <[format]>, ...);
68
        char *_asnprintf_r(struct _reent *<[ptr]>, char *<[str]>,
68
        char *_asnprintf_r(struct _reent *<[ptr]>, char *restrict <[str]>,
69
                           size_t *<[size]>, const char *<[format]>, ...);
69
                           size_t *restrict <[size]>, const char *restrict <[format]>, ...);
70
 
70
 
Line 516... Line 516...
516
			Takes a pointer to <>, and prints it in
516
			Takes a pointer to <>, and prints it in
517
			an implementation-defined format.  This
517
			an implementation-defined format.  This
518
			implementation is similar to <<%#tx>>), except
518
			implementation is similar to <<%#tx>>), except
519
			that <<0x>> appears even for the NULL pointer.
519
			that <<0x>> appears even for the NULL pointer.
Line -... Line 520...
-
 
520
 
-
 
521
		o m
-
 
522
			Prints the output of <>; no
-
 
523
			argument is required.  A GNU extension.
520
 
524
 
521
		o-
525
		o-
Line 522... Line 526...
522
	O-
526
	O-
523
 
527
 
Line 573... Line 577...
573
 
577
 
574
int
578
int
575
#ifdef _HAVE_STDC
579
#ifdef _HAVE_STDC
576
_DEFUN(_sprintf_r, (ptr, str, fmt),
580
_DEFUN(_sprintf_r, (ptr, str, fmt),
577
       struct _reent *ptr _AND
581
       struct _reent *ptr _AND
578
       char *str          _AND
582
       char *__restrict str          _AND
579
       _CONST char *fmt _DOTS)
583
       _CONST char *__restrict fmt _DOTS)
580
#else
584
#else
581
_sprintf_r(ptr, str, fmt, va_alist)
585
_sprintf_r(ptr, str, fmt, va_alist)
582
           struct _reent *ptr;
586
           struct _reent *ptr;
583
           char *str;
587
           char *__restrict str;
584
           _CONST char *fmt;
588
           _CONST char *__restrict fmt;
585
           va_dcl
589
           va_dcl
586
#endif
590
#endif
587
{
591
{
588
  int ret;
592
  int ret;
Line 607... Line 611...
607
#ifndef _REENT_ONLY
611
#ifndef _REENT_ONLY
Line 608... Line 612...
608
 
612
 
609
int
613
int
610
#ifdef _HAVE_STDC
614
#ifdef _HAVE_STDC
611
_DEFUN(sprintf, (str, fmt),
615
_DEFUN(sprintf, (str, fmt),
612
       char *str _AND
616
       char *__restrict str _AND
613
       _CONST char *fmt _DOTS)
617
       _CONST char *__restrict fmt _DOTS)
614
#else
618
#else
615
sprintf(str, fmt, va_alist)
619
sprintf(str, fmt, va_alist)
616
        char *str;
620
        char *str;
617
        _CONST char *fmt;
621
        _CONST char *fmt;