linux c

#include <stdio.h>
#include <string.h>
#include <strings.h>

int main(){
    char buf[100];  
    bzero(buf, 100);
    fgets(buf, 100, stdin);
    printf("%d", strlen(buf));
}

原文地址:https://www.cnblogs.com/agang-php/p/5591903.html