1 2 3 4 5 6 7 8
#include <stdio.h> int main(int argc, char **argv) { char q[10]; char buf1[10]; sscanf(q,"%20c",buf1); return 1; }