码迷,mamicode.com
首页 > 系统相关 > 详细

linux c

时间:2016-06-16 20:04:50      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:

#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));
}

linux c

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!