runtime error in a for loop

+1 Daniel Katzav · November 23, 2015
hi guys,

the deal is this, I'm scanning a input from the user, sending it to a function,
which is checking rather it is in the right conditions of how long is the string, which symbols and so on.

than i go back to the main function and i want to print it in a way like this
[i_1][i_2].....[i_n]
(user chooses how long is the string)
(index 1, index 2,....index n)

trying to strcat the string using a for loop, but somewhow it runtime errors me.

would be happy if some of you can correct me !!

thanks !!
                    printf("Enter a board: [_/\^#*]\n");
                    scanf("%80s", userboard);
                    boardlength = set_board(userboard);
                    for(i=0; i

Post a Reply

Replies

Oldest  Newest  Rating
+1 Dan P · November 23, 2015
Hi Daniel,

Can you show the full code?
  • 1

C

106,980 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator