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

📄 extract_name.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lintstatic char sccsid[] = "@(#)extract_name.c 1.1 92/07/30 Copyr 1988 Sun Micro";#endif/* * Copyright (c) 1988 by Sun Microsystems, Inc. *//* * _nse_extract_name(path, file_name) extracts the next file name in * the path 'path', and skips over the trailing '/', if any. * The file name is returned in 'file_name'. * the function value is the new index into the path. */char *_nse_extract_name(path, buf)	char		*path;	char		*buf;{	char		*filep;	filep = buf;	while (path[0] != '/' &&  path[0] != '\0') {		filep[0] = path[0];		filep++;		path++;	}	filep[0] = '\0';	if (path[0] == '/') {		path++;	}	return(path);}

⌨️ 快捷键说明

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