strcpy problem
#1

I have a problem with strcpy, it always prints null

#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)

pawn Код:
new TestEx[MAX_PLAYERS][10],
    Test[10] = "test12345"
;

strcpy(TestEx[1], Test, strlen(Test) + 1);
printf("Bandymas: %s", TestEx[1]);
strcpy(TestEx[1], Test);
printf("Bandymas #2: %s", TestEx[1]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)