GTK字串處理 String Utility Functions


String Utility Functions


g_ascii_strtod ()

Converts a string to a gdouble value. This function behaves like the standard strtod() function does in the C locale. It does this without actually changing the current locale, since that would not be thread-safe.

This function is typically used when reading configuration files or other non-user input that should be locale independent. To handle input from the user you should normally use the locale-sensitive system strtod() function.

To convert from a gdouble to a string in a locale-insensitive way, use g_ascii_dtostr().

If the correct value would cause overflow, plus or minus HUGE_VAL is returned (according to the sign of the value), and ERANGE is stored in errno. If the correct value would cause underflow, zero is returned and ERANGE is stored in errno.

This function resets errno before calling strtod() so that you can reliably detect overflow and underflow.

留言

Google

本月熱門文章

廚具水電行介紹---臺北市南港區忠孝東路6段30號的忠孝水電廚具行---廚房統包找我就對了!

水電行介紹--台北市松山區延吉街9-2號的光華水電行—我不在光華商場附近啊!

台北捷運主要是誰開始推動的?

熱門文章

企鵝妹/柳允進 史上最暈的TT三分鐘完整版一次看個夠

香港朋友,真的對唔住,台灣出了這種中共的幫兇!

陳昇 Bobby Chen【把悲傷留給自己 I left sadness to myself】Official Music Video

裝潢師傅貼圖來了唷

新手自建監控雲最快的方式:推薦QNAP NAS 搭配QVR Pro

[黑金] 台南88槍擊案主犯國民黨學甲區黨部主委王文宗 也擔任統促黨幹部

廚具水電行介紹---臺北市南港區忠孝東路6段30號的忠孝水電廚具行---廚房統包找我就對了!

2020 中華民國 台灣 失業補助申請方式 失業給付申請