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

📄 argvize.c

📁 mips架构的bootloader,99左右的版本 但源代码现在没人更新了
💻 C
字号:
/************************************************************* * File: lib/argvize.c * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: *	970304	Start of revision history */#define MAX_AC 100/** int argvize(av,s) place address of each word in s into the array av */int argvize(av,s)char *av[];char *s;{char **pav = av, c;int ac;for (ac=0;ac<MAX_AC;ac++) {	/* step over cntrls and spaces */	while(*s && *s <= ' ') ++s;	/* if eos quit */	if(!*s) break;	c = *s;	/* if it's a quote skip forward */	if(c == '\'' || c == '"') {		if (pav) *pav++ = ++s;		while(*s && *s != c) ++s;		if(*s) *s++ = 0;		}	else { /* find end of word */		if (pav) *pav++ = s;		while(' ' < *s) ++s;		}	/* not eos inc ptr */	if(*s) *s++ = 0;	}return(ac);}

⌨️ 快捷键说明

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