⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 psnprintf.h

📁 COS 0.0.1.rar Cos操作系统源代码
💻 H
字号:
/* This is part of psnprintf-0.4, see the file "license-psnprintf-0.4".  Changed 16/10/04 for cos by Paul Barker:	Stripped out all floating point stuff.*/#ifndef PSNPRINTF_H#define PSNPRINTF_H#include <stdarg.h>int psnprintf(char *str, size_t n, const char *format, ...);int pvsnprintf(char *str, size_t n, const char *format, va_list ap);/* Use these directly if you want to avoid overhead of psnprintf * Return value is number of characters printed (or number printed * if there had been enough room). */int pvsnfmt_char(char **pinsertion, size_t *nmax, const char fmt, int flags,                  int width, int precision, char prefix, va_list *ap);int pvsnfmt_int(char **pinsertion, size_t *nmax, char fmt, int flags,                  int width, int precision, char prefix, va_list *ap);int pvsnfmt_str(char **pinsertion, size_t *nmax, const char fmt, int flags,                  int width, int precision, char prefix, va_list *ap);   /* These are the flags you need (use logical OR) for the flags parameter of * fmt functions above. */#define FLAG_DEFAULT         0x00#define FLAG_LEFT_ALIGN      0x01 /* - */#define FLAG_SIGNED          0x02 /* + */#define FLAG_ZERO_PAD        0x04 /* 0 */#define FLAG_SIGN_PAD        0x08 /* ' ' */#define FLAG_HASH            0x10 /* #  */                 /* Portable strnlen function (doesn't exist on all systems!) */size_t pstrnlen(const char *s, size_t count);#endif /* ifdef PSNPRINTF_H */

⌨️ 快捷键说明

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