strsep.c

来自「zlib压缩原码」· C语言 代码 · 共 36 行

C
36
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?