linelen.c

来自「The art and science of c_source code!」· C语言 代码 · 共 24 行

C
24
字号
/* * File: linelen.c * --------------- * This file contains a main program that reports the * length of an input line. */#include <stdio.h>#include "genlib.h"#include "strlib.h"#include "simpio.h"/* Main program */main(){    string str;    printf("This program tests the StringLength function.\n");    printf("Enter a string: ");    str = GetLine();    printf("The length is %d.\n", StringLength(str));}

⌨️ 快捷键说明

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