You must get information about your
struct string
because it may have a member which has the length, but read carefully it could also be the max size. Than the the solution of Dirk with the string data.
I guess you need to learn a lot to improve your coding skills. Take time and learn or you will fail. Google for some tutorial or read your school documents an
practise .
Good luck