Timeline for Interleave two strings
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 10, 2017 at 14:07 | history | edited | forsvarir | CC BY-SA 3.0 |
fixed typo
|
| Feb 10, 2017 at 13:32 | comment | added | CiaPan |
The length of the newly allocated memory block treated as a string will always be zero if you used calloc() for allocation, which guarantees initialization of the block with zero bytes (ASCII NUL character). With malloc(), however, the allocated block is not guaranteed to be initialized, so strlen() may return anything – or even not return anything.
|
|
| Feb 10, 2017 at 12:40 | review | First posts | |||
| Feb 10, 2017 at 14:07 | |||||
| Feb 10, 2017 at 12:34 | history | answered | sanecz | CC BY-SA 3.0 |