Just like stdio fprintf(), except works on a CFILE
| 776 | |
| 777 | // Just like stdio fprintf(), except works on a CFILE |
| 778 | int cfprintf(CFILE *cfp, const char *format, ...) { |
| 779 | va_list args; |
| 780 | int count; |
| 781 | va_start(args, format); |
| 782 | count = vfprintf(cfp->file, format, args); |
| 783 | va_end(args); |
| 784 | cfp->position += count + 1; // count doesn't include terminator |
| 785 | return count; |
| 786 | } |
| 787 | |
| 788 | // The following functions write numeric vales to a CFILE. All values are |
| 789 | // stored to the file in Intel (little-endian) format. |
no outgoing calls
no test coverage detected