码迷,mamicode.com
首页 > 其他好文 > 详细

code2

时间:2019-04-29 21:01:08      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:return   scanf   printf   nis   stdio.h   can   har   style   char   

#include <unistd.h>
#include <sys/syscall.h>
#include <linux/kernel.h>
#include <stdio.h>
#include <string.h>
int main()
{
    int a;
    char s[100];
    printf("Give me a string:\n");
    scanf("%s",s);
    syscall(328,s,strlen(s),&a);
    syscall(327,a);
    return 0;
}

 

code2

标签:return   scanf   printf   nis   stdio.h   can   har   style   char   

原文地址:https://www.cnblogs.com/fqqq/p/10792673.html

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