I'm trying to find the length of a number to make sure it isn't >5 or <3. I tried
unsigned int *ptrIDNumber = objEmp1.iIDNumber;
unsigned int iIDLength = strlen(ptrIDNumber);
but I get a syntax error saying I can't convert 'unsigned int' to 'unsigned int*'. I also get another syntax error that says I can't convert parameter 1 from 'unsigned int *' to 'const char*'. I don't understand this and I was hoping someone could help me out.
-Nut
unsigned int *ptrIDNumber = objEmp1.iIDNumber;
unsigned int iIDLength = strlen(ptrIDNumber);
but I get a syntax error saying I can't convert 'unsigned int' to 'unsigned int*'. I also get another syntax error that says I can't convert parameter 1 from 'unsigned int *' to 'const char*'. I don't understand this and I was hoping someone could help me out.
-Nut
