next up previous
Next: n = fprintf(fpfmt[, Up: MATC Internal Functions Previous: str = fgets(fp)

n = fwrite(fp,buf,n)

Write n bytes form buf to file fp. File pointer fp should have been obtained from a call to fopen or freopen or be the standard output (stdout) or standard error (stderr). Return value is number of bytes actually written.

Note that one matrix element reserves 8 bytes of space.

SEE ALSO: fopen,freopen,fputs,fprintf,matcvt,cvtmat.



Juha Ruokolainen
Fri Feb 14 15:59:30 EET 1997