Can't find the correct phrasing, but am I allowed to edit an argument in C or do I have to strdup() it? Like, can I do argv[1][0] = 'A', or do I have to strdup() it and work on the duplicated string?

Follow

@vaporeon_ what i remember is “maybe, but you it’s safest to assume you can’t”. i’m p sure that at some point C started requiring argv to be declared const

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.