You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • yes, everything in first part is expected except line 7 st.write("a","AB",0);, that should overwrite first two 255 in array to be 'A','B','\xFF','\xFF',.... instead it will truncate the file and then the size is 2 so next lines fail

    but the empty string seems to work, first byte is still 255 so uninitialized, so only writing to offset zero does not work correctly even if you don't initialize first byte

About

Avatar for fanoush @fanoush started