void phone_number(charm[, int) function to add hyphen(
-), so I coded it in the same way as above, but the runtime error appeared.
How do I make this code shorter?
20211234 Honggil-dong 01012345678
It's a null-terminated string, but after copying each character to phone_a, the last null is not added, so the garbage value is attached.
There can be many modifications.
When declaring the phone_a region variable as shown below, I think the problem will be solved by filling it with null in advance.
© 2022 pinfo. All rights reserved.