argz_stringify.c
来自「cygwin, 著名的在win32下模拟unix操作系统的东东」· C语言 代码 · 共 21 行
C
21 行
/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved. * * Permission to use, copy, modify, and distribute this software * is freely granted, provided that this notice is preserved. */#include <sys/types.h>voidargz_stringify (char *argz, size_t argz_len, int sep){ size_t i; /* len includes trailing \0, which we don't want to replace. */ for (i = 0; i < argz_len - 1; i++) { if (argz[i] == '\0') argz[i] = sep; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?