ILD
printf non null terminated string
2025-1-14
打印一段字符,这段字符没有0结尾,但是知道长度,如何实现呢:printf("%.8s", str)或者len = 8;printf("%.*s", len, str);前者是常量形式,后者可以是变量。https://stackoverflow.com/questions/2239519/is-the
阅读全文
上一页
1
2
下一页
Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.