Sign Up
Time to claim your honor
Training
Practice
Complete challenging
Kata
to earn honor and ranks. Re-train to hone technique
Freestyle Sparring
Take turns remixing and refactoring others code through
Kumite
Community
Leaderboards
Achieve honor and move up the global leaderboards
Chat
Join our
Discord
server and chat with your fellow code warriors
Discussions
View our
Github Discussions
board to discuss general Codewars topics
About
Docs
Learn about all of the different aspects of Codewars
Blog
Read the latest news from Codewars and the community
Log In
Sign Up
Name:
Unknown
Clan:
Unknown
Member Since:
Apr 2024
Last Seen:
Nov 2024
Profiles:
Following:
1
Followers:
0
Allies:
0
View Profile Badges
Authentic Jobs
Your new development career awaits. Check out the latest listings.
Learn More
Ads via Carbon
Stats
Kata
Collections
Kumite
Social
Discourse
Conversations
Replies (1)
Authored
Needs Resolution
trashy_incel
resolved a question on
"Your order, please" kata
6 months ago
Be careful with
strncpy()
, it is a terrible function. It does not nul-terminate
dest
if there is no nul byte among the first
n
bytes of
src
. As a result
ordered
is not nul-terminated in your code
your code does not work for e.g.
"1 4 3 2 5"
Confirm
Collect:
undefined
Loading collection data...
strncpy()
, it is a terrible function. It does not nul-terminatedest
if there is no nul byte among the firstn
bytes ofsrc
. As a resultordered
is not nul-terminated in your code"1 4 3 2 5"