I have two questions:
1. Can I have an array of structs and if so, how do I define it? I know how to define a struct, but not an array of structs if its possible.
2. If I have a csv string containing 2 ints and a string. how can I separate them using sscanf? An example format of the string is "0,5,TEST" I was reading on sscanf and saw that if there is a space, it will only take the value up to the space so do i need to make the string "0 5 TEST" instead of using csv and do 3 separate sscanf using %d %d and then again using %s???



LinkBack URL
About LinkBacks


