bad conversion from gchar* to guint64 on android

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bad conversion from gchar* to guint64 on android

Dani MR
Hi everyone,
I am writing a C project for pc and android, and in some place I have to convert a gchar* to a guint64 value. On the PC I am using Ubuntu and it does the conversion successfully, but using the same code into the android ndk is not working right. The instruction I am using on both projects is:
guint64 val = (guint64) strtoull(char_val, (char **)NULL, 10);
Has anyone any clue why it is not working with android at all?

Thanks

Dani

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: bad conversion from gchar* to guint64 on android

Dani MR
Ok problem solved, I needed to include stdlib.h, noob's issue!

El 31/03/16 a las 13:43, Dani escribió:
Hi everyone,
I am writing a C project for pc and android, and in some place I have to convert a gchar* to a guint64 value. On the PC I am using Ubuntu and it does the conversion successfully, but using the same code into the android ndk is not working right. The instruction I am using on both projects is:
guint64 val = (guint64) strtoull(char_val, (char **)NULL, 10);
Has anyone any clue why it is not working with android at all?

Thanks

Dani


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel