Server array (mysql, php) -> gboolean array in c client
hi,
I got a cient in c and a server using lamp(linux, apache, mysql and php). I need to fill an stastic gboolean arr[12]; 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. |
well i just looped it. But it would be nice with some way to make a string set all the values in an array.
|
All times are GMT -5. The time now is 11:21 PM. |