Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
stdio.c File Reference
#include <stdarg.h>
#include <stddef.h>
#include "string.h"
#include "stdio.h"
#include "ops.h"

Go to the source code of this file.

Macros

#define do_div(n, base)
 
#define ZEROPAD   1 /* pad with zero */
 
#define SIGN   2 /* unsigned/signed long */
 
#define PLUS   4 /* show plus */
 
#define SPACE   8 /* space if plus */
 
#define LEFT   16 /* left justified */
 
#define SPECIAL   32 /* 0x */
 
#define LARGE   64 /* use 'ABCDEF' instead of 'abcdef' */
 

Functions

size_t strnlen (const char *s, size_t count)
 
unsigned int __div64_32 (unsigned long long *dividend, unsigned int divisor)
 
int vsprintf (char *buf, const char *fmt, va_list args)
 
int sprintf (char *buf, const char *fmt,...)
 
int printf (const char *fmt,...)
 

Macro Definition Documentation

#define do_div (   n,
  base 
)
Value:
({ \
unsigned int __base = (base); \
unsigned int __rem; \
(void)(((typeof((n)) *)0) == ((unsigned long long *)0)); \
if (((n) >> 32) == 0) { \
__rem = (unsigned int)(n) % __base; \
(n) = (unsigned int)(n) / __base; \
} else \
__rem = __div64_32(&(n), __base); \
__rem; \
})

Definition at line 30 of file stdio.c.

#define LARGE   64 /* use 'ABCDEF' instead of 'abcdef' */

Definition at line 57 of file stdio.c.

#define LEFT   16 /* left justified */

Definition at line 55 of file stdio.c.

#define PLUS   4 /* show plus */

Definition at line 53 of file stdio.c.

#define SIGN   2 /* unsigned/signed long */

Definition at line 52 of file stdio.c.

#define SPACE   8 /* space if plus */

Definition at line 54 of file stdio.c.

#define SPECIAL   32 /* 0x */

Definition at line 56 of file stdio.c.

#define ZEROPAD   1 /* pad with zero */

Definition at line 51 of file stdio.c.

Function Documentation

unsigned int __div64_32 ( unsigned long long dividend,
unsigned int  divisor 
)

Definition at line 127 of file div64.c.

int printf ( const char fmt,
  ... 
)

Definition at line 323 of file stdio.c.

int sprintf ( char buf,
const char fmt,
  ... 
)

Definition at line 309 of file stdio.c.

size_t strnlen ( const char s,
size_t  count 
)

Definition at line 15 of file stdio.c.

int vsprintf ( char buf,
const char fmt,
va_list  args 
)

Definition at line 126 of file stdio.c.