Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "itoa" stand for in strconv.Itoa?

Tags:

This might sound like a silly question... But I can't find anywhere what the "a" in strconv.Itoa actually stands for. If its taking an integer and turning it into a string, why isn't the function called Itos?

like image 544
Eric R. Avatar asked Apr 04 '13 04:04

Eric R.


People also ask

What does itoa mean?

IT operations analytics (ITOA) is the practice of monitoring systems and gathering, processing, analyzing and interpreting data from various IT operations sources to guide decisions and predict potential issues.

What does itoa stand for Golang?

integer to ASCII. Thanks to @mvp!

What does itoa stand for C?

C Programming/stdlib. h/itoa The itoa (integer to ASCII) function is a widespread non-standard extension to the standard C programming language. It cannot be portably used, as it is not defined in any of the C language standards; however, compilers often provide it through the header <stdlib.

What is Strconv itoa Golang?

To convert int to string in Go language, call strconv. Itoa() function and pass the integer as argument to it. The function returns the string formed with the given integer.


1 Answers

integer to ASCII. It comes from the C language/UNIX. See this thread for more: Where did the name `atoi` come from?

In the C language, there is no concept such as strings, you have arrays of characters that are null terminated.

Thanks to @mvp!

like image 186
X-Istence Avatar answered Nov 18 '22 13:11

X-Istence