fputc(33,file.get()); // 33 (hex 0x21) GIF Extension code
fputc(255,file.get()); // 255 (hex 0xFF) Application Extension Label
fputc(11,file.get()); // 11 (hex (0x0B) Length of Application Block
fputc(33,file.get()); // 33 (hex 0x21) GIF Extension code
fputc(255,file.get()); // 255 (hex 0xFF) Application Extension Label
fputc(11,file.get()); // 11 (hex (0x0B) Length of Application Block
fputc((loop_count&0x0000ff00)>>8,file.get());
fputc(0,file.get()); // 0 (hex 0x00) a Data Sub-block Terminator.
}
fputc((loop_count&0x0000ff00)>>8,file.get());
fputc(0,file.get()); // 0 (hex 0x00) a Data Sub-block Terminator.
}