vsprintf.h

来自「1. 8623L平台」· C头文件 代码 · 共 39 行

H
39
字号
/***************************************** Copyright (c) 2003-2007 Sigma Designs, Inc. All Rights Reserved Proprietary and Confidential *****************************************//* This file is part of the boot loader *//* * vsprintf.h * * This is the porting of <stdarg.h> for ARM processor * also including function prototypes defined in vsprintf.c */#ifndef __BOOTLOADER_VSPRINTF_H#define __BOOTLOADER_VSPRINTF_H// stdargtypedef void *va_list;// size of memory storing the data with specified type// data size must be multiple of sizeof(int) : 4 bytes#define __va_rounded_size(TYPE)  \  (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))// stdarg standard macros#define va_start(AP, LASTARG)   (AP = (va_list) __builtin_next_arg(LASTARG))#define va_end(AP)#define va_arg(AP, TYPE)        (AP = (va_list) ((char *) (AP) + __va_rounded_size (TYPE)), *((TYPE *) (void *) ((char *) (AP) - __va_rounded_size(TYPE))))/* function prototypes */        int sprintf(char * buf, const char *fmt, ...) __attribute__((format(printf, 2, 3)));int vsprintf(char *buf, const char *fmt, va_list args);#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?