What is the use of string function strtonum(string)?



What is the use of string function strtonum(string)?..

Answer / quickmist

strtonum() will reliably convert a string representation of a number into an integer number. It's reliable because you can pass the min and max value that the you want the input to be within and strtonum() will return an error code if the number falls outside the specified range. This function however expects only 1 '-' symbol to exist in the input and returns a long long integer.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Awk Interview Questions

What is the use of sequence a?

1 Answers  


What is the use of format specifier %o ?

1 Answers  


What is the use of numeric function srand ?

1 Answers  


What is NR in AWK?

1 Answers  


What is the use of format specifier %c ?

1 Answers  






What is the use of string function substr(string,position,max) in AWK?

0 Answers  


What is the use of numeric function sin ?

1 Answers  


How do you Explicit File output?

0 Answers  


How to generate random numbers in AWK?

0 Answers  


What is the use of string function tolower(string)?

0 Answers  


What is the use of string function match(string,regex)?

0 Answers  


What is the use of string function split(string,array,separator)in AWK?

0 Answers  


Categories