Posts by Anderson Silva • 11 points
2 posts
-
0
votes2
answers157
viewsA: Problem in string printing
You don’t need to use char** p in your function, you can use only char* p, since you are working only on top of a string. Utilize char** p will make your function more confusing. And unless you want…
canswered Anderson Silva 11 -
1
votes3
answers2396
viewsA: How to read the first three characters of a string?
By your question, I believe your intention is just to make the comparison in if and for this case you can use the strncmp function. Then the comparison would look like this: if(strncmp(linha, "HTJ",…
canswered Anderson Silva 11