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 SUBSEP?

0 Answers  


What is the use of Strftime function?

0 Answers  


What are Associative Arrays?

0 Answers  


What is the use of format specifier %s ?

1 Answers  


In the text file, some lines are delimited by colon and some are delimited by space. Write a command to print the third field of each line.?

0 Answers  






What is the use of sequence <Any other character> ?

1 Answers  


What is the use of string function length(string) in AWK?

0 Answers  


What is the use of string functiong sub(regex,replacement)?

0 Answers  


What is the use of format specifier %f ?

1 Answers  


What is the use of sequence v ?

1 Answers  


What are Assignment Operators?

0 Answers  


What is the use of format specifier %e ?

1 Answers  


Categories