extract_name.c
来自「操作系统SunOS 4.1.3版本的源码」· C语言 代码 · 共 34 行
C
34 行
#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 + =
减小字号Ctrl + -
显示快捷键?