cancel
Showing results for 
Search instead for 
Did you mean: 

assert & Str2Int

carnett1
Associate II
Posted on August 01, 2012 at 16:21

I am trying to use assert () to check amd make sure that my input is an integer.  I assign char choice[15]; u32 a; u8 n;  then I write n=Str2Int (*choice, *a); and it don't work, error bad argument type.   If I change my declarations so that I get no error on Str2Int I then get an error on assert (a>=1 && a<=9);

I have changed my config file to allow assert and added a prototype and included assert.h.

I am using Raisonance tools

charles arnett

carnett1@instrulab.com
0 REPLIES 0