Handling argc==0 in the kernel
Handling argc==0 in the kernel
Posted Jan 29, 2022 18:56 UTC (Sat) by adobriyan (guest, #30858)In reply to: Handling argc==0 in the kernel by larkey
Parent article: Handling argc==0 in the kernel
The best, UB free, pattern is
for (int i = 1; i < argc; ++i) { const char *arg = argv[i]; ... }
