a.c

来自「geekos 0.3.0简单的操作系统」· C语言 代码 · 共 28 行

C
28
字号
/* *  A simple program for testing ELF parsing and loading *   * Copyright (c) 2004, David H. Hovemeyer <daveho@cs.umd.edu> * Copyright (c) 2004, Iulian Neamtiu <neamtiu@cs.umd.edu> * $Revision: 1.24 $ * * This is free software.  You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". *//* ELF_Print only prints NULL-terminated strings;  * no formatting or other fancy features */void ELF_Print(char* msg);char  s1[40] = "Hi ! This is the first string\n";int main(int argc, char** argv){   char  s2[40] = "Hi ! This is the second string\n";    ELF_Print(s1);   ELF_Print(s2);    return 0;}

⌨️ 快捷键说明

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