Conversation
Notices
-
polprog68k (gorplop@pleroma.m68k.church)'s status on Monday, 16-Dec-2024 20:54:46 JST polprog68k today's adventures in embeddedland:
1. char is unsigned on this platform
2. getopt returns -1
3. 255 != -1
4. getopt example code loops forever
4a. there is no warning when using char vs unsigned char
:cacospin:-
polprog68k (gorplop@pleroma.m68k.church)'s status on Monday, 16-Dec-2024 23:16:07 JST polprog68k @a1ba i wasnt paying attention and saw it was being compared with char literals, i shouls have used an int, knoblauchkeks explained it quickly -
41402 (a1ba@suya.place)'s status on Monday, 16-Dec-2024 23:16:08 JST 41402 @gorplop why you want to save return value in char when getopt specifically returns int?
-