I've been using for a while the following line to create my own string type and make it easier to declare this kind of data:
typedef char *string;
Since I am trying to learn more about doing things the 'safe' way in C, I come to you guys with a question. In which way this could cause subsequent problems in my code, like memory leaks or lost pointers, etc...? It is clear for example that with this methodology there is no space reservation for a specific amount of characters.
Appreciate any hint!
Aucun commentaire:
Enregistrer un commentaire