All pastes #135239 Raw Edit

eKo1

public text v1 · immutable
#135239 ·published 2006-08-16 20:27 UTC
rendered paste body
#include <stdio.h>

int main() {
    char a[3] = "abc";
    char b[5] = "12345";

    int count = 0;
    while (a[count] != '\0')
        count++;

    /*strncpy(a, b, 5);*/

    printf("a: %s\nb: %s\n", a, b);
    printf("a has %d characters\n", count);
    return 0;
}