code2

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

 

posted @ 2019-04-29 20:20  fqqq  阅读(243)  评论(0编辑  收藏  举报