What is Nostr?
/ Z3R0
npub1djl…hj4w
2024-02-04 00:12:27

Z3R0 on Nostr: So, I'm playing around manipulating strings. This function converts an integer to a ...

So, I'm playing around manipulating strings. This function converts an integer to a string. Is this code safe? I want to make sure there are no memory leaks, buffer overflows, or risks of overflow during conversion. My biggest concerns are related to the usage of malloc; this is one of my first times using it. Did I handle it correctly?
Author Public Key
npub1djlnntmv6aznkpd0c5e8fnn5yp0l826lk5yyv2h2c9xg249c47ss52hj4w