LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

sscanf and isdigit

"-0123456789" is not a number with a negative sign.

It is a group of characters allowed in a string representation of a number.

 

edit: Roberto already explained that above. 

Message Edited by ebalci on 08-12-2009 11:53 PM
S. Eren BALCI
IMESTEK
0 Kudos
Message 11 of 14
(1,171 Views)

ok Im encounter another error for whitespcace, going to the next line of the code or next the line in the script file.

 

 DAS, FILE, C:\\    ***********first line is good
DAS, FRAMES, 1w ************second line is bad,so there should be a revomewhitespace function.

 

 

I need that function so that when i go to each line, i can remove the white space and then call the test below, because  NumFmtdBytes

doesnt count the last white space going between of from end of the line to the beginning of the next  line in the function.

 

         iErrorFlag=NumFmtdBytes();
        if (NumFmtdBytes() < strlen (sCmd))
 

0 Kudos
Message 12 of 14
(1,170 Views)
Use RemoveSurroundingWhiteSpace () function.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 13 of 14
(1,166 Views)

and what does that have to do with the subject "sscanf and isdigit" ?!

 

besides, once again, what error did you encounter, what does "first line ise good"  or "second line is bad" mean? 

S. Eren BALCI
IMESTEK
0 Kudos
Message 14 of 14
(1,165 Views)