📄 strsep.c
字号:
/* * strsep.c * * Copyright (C) 1993 Alain Knaff */#include <stdio.h>#include <string.h>#ifndef HAVE_STRSEP/* * SunOs lacks strsep */char *strsep(char **stringp,__const char *delim){ char *newpos, *oldpos; oldpos = *stringp; if ( oldpos == NULL ) return NULL; newpos = strpbrk( oldpos, delim); if ( newpos ){ *newpos='\0'; newpos++; } *stringp = newpos; return oldpos;}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -