Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- size_t convert(void *data,size_t size)
- {
- if (size == 4)
- {
- int idx = *(int*)data;
- return idx;
- }
- else
- {
- printf("here\n");
- float value = *(float*)data;
- printf("%f\n",value);
- return value;
- }
- }
Add Comment
Please, Sign In to add comment