Hi!
I'm working on a small program to keep track of my economy. I can get excerpts from my banks web portal of all transactions in the format
I'm using SDL to kickstart myself and I'm trying to create a nice table to list each transaction. I was thinking something like tab separated listing with one line per transaction. It would involve concatenating each parsed value with a custom tab (since it seems SDL_TTF doesn't do whitespace). This led me out on the internet where I stumbled upon
this article which made me groan a little.
It seems that strcat is super inefficient and so is malloc when used a lot. Some other techniques are proposed both for concatenation and handling of strings. So I have actually two questions (thanks to that article):
1. I feel like someone should have solved this problem of working with string already. Is there a library or something I can use for this?
2. I'll probably be allocating and reallocating a bunch, will that be a problem?
Just a bit confused. Thought I had this down, but the more you know..
Thanks!
/Robert