Server array (mysql, php) -> gboolean array in c client
I got a cient in c and a server using lamp(linux, apache, mysql and php). I need to fill an stastic gboolean arr; in the client from server using a socket. Now i send the string in a format like this myarr=0:0:0:1:0:1:0:0:0:1:0:1 . Here mysql is using bool in the table whitch is a tinyint, 0 for false and 1 for true.
Do i have to loop every value to set the array(client) or is ther a direct way? I can ofcourse change the format.