uthcode / learntosolveit

The C Programming Language Companion
http://www.learntosolveit.com
Other
198 stars 1.37k forks source link

Update Ex_5.5_strncpy.c #148

Open Oroweln opened 2 years ago

Oroweln commented 2 years ago

2 minor fixes: first function call of mystrnlen had a typo and as such produced wimplicit warning, and *dest++ is not doing anything except pointing, its supposed to rather increment, so changed it to dest++.