#fgets in C

1 messages · Page 1 of 1 (latest)

flat cove
#

strlen from string.h should work

#

However, it will ignore the last 0-byte, so you have to add 1 to it

#

Or, you could write your own function for it, it's pretty straightforward (iterate over the string and increnent a counter until reached \0)