Forums - Certain Standard Libc functions not working

1 post / 0 new
Certain Standard Libc functions not working
asad.islam
Join Date: 8 Nov 19
Posts: 2
Posted: Wed, 2020-01-15 09:03

Hi,

I am using the Snapdragon LLVM ARM C/C++ toolchain version 4.0.3. The hardware is a Quectel BG96 chip. 
The functionality that fails is converting string to number. If you use "
strtod" or "strtol" and use the string "123", you get correct values. But if using string "a" then instead of failing to parse, the code gets stuck. The device doesnt crash or anything, its just the compiled application stops working.

Currently there is no way to fix it except to manally check the first character.

Thanks,
Asad

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.