strpad.c

来自「支持各种栅格图像和矢量图像读取的库」· C语言 代码 · 共 38 行

C
38
字号
/********//* USES *//********//* libs ext. <>, our ""  */#include <string.h>/* global header (opt.) and strpad's prototypes "" */#include "csf.h"#include "csfimpl.h"/* headers of this app. modules called */ /***************//* EXTERNALS   *//***************//**********************/ /* LOCAL DECLARATIONS *//**********************/ /*********************/ /* LOCAL DEFINITIONS *//*********************/ /******************//* IMPLEMENTATION *//******************//* pad a string attribute with zeros (LIBRARY_INTERNAL) */char *CsfStringPad(char *s, size_t reqSize){	size_t l = strlen(s);	PRECOND(l <= reqSize);	(void)memset(s+l, '\0', reqSize-l);	return s;}

⌨️ 快捷键说明

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