I need to validate a timestamp string for one of my embedded applications. The SDK does not provide regex.h so I need to come up with another solution.
I been googling and found some lightweight regex alternatives on github but I wanted to see if there is a better/simpler alternative before I start to integrate that into the build.
Any suggestion how to make such a function in C? The string will have the format: YYYY-MM-DD HH:MM:SS. I control this format too so if another is better I can adopt to that.