2024-11-20 π programmerhumor β edited β RE: yogthos
Kind of unrelated, why does c sometimes fail to print if it hits a breakpoint right after a print while debugging? Or if it segfaults right after too iirc
does anything flush the buffers after the print, but before the break? otherwise, if the stream youβre printing to is buffered, youβre not necessarily gonna see any output
Im pretty sure its because of char 13 (carriage return). This char sets cursor to the start of the line overwriting whatever was printed there (in most terminals). I belive that some error [β¦]
Without knowing the details of C, Iβve seen this in other languages and itβs usually something with missing a flush or a buffered output mode or something like that.
ββββ
ββββ