2021-10-14から1日間の記事一覧

strtol

strtolは、文字列を指定された基数で変換(n進数の文字列だと解釈)する。Man page of STRTOL strtol, strtoll - cppreference.comstrtol.cで、与えられた文字列を0, 2, 8, 10, 16を基数として変換。 $ vi strtol.c $ gcc strtol.c -o strtol $ ./strtol str: …