find_arch.c
来自「操作系统SunOS 4.1.3版本的源码」· C语言 代码 · 共 38 行
C
38 行
#ifndef lint#ifdef SunB1static char mls_sccsid[] = "@(#)find_arch.c 1.1 92/07/30 SMI; SunOS MLS";#elsestatic char sccsid[] = "@(#)find_arch.c 1.1 92/07/30 SMI";#endif /* SunB1 */#endif lint/* * Copyright (c) 1989 Sun Microsystems, Inc. *//* * Name: find_arch() * * Description: Find the architecture matching 'arch_code' in * the array of architecture information, 'arch_p'. If * a match is found, then a pointer to the matching * structures is returned otherwise NULL is returned. */#include "install.h"arch_info *find_arch(arch_code, arch_p) char * arch_code; arch_info * arch_p;{ arch_info *ap; for (ap = arch_p; ap ; ap = ap->next) if (strcmp(ap->arch_str, arch_code) == 0) return(ap); return(NULL);} /* end find_arch() */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?