al_fopen - Online Linux Manual PageSection : 3
Updated :
Source : Allegro reference manual
Note :

NAMEal_fopen − Allegro 5 API

SYNOPSIS #include <allegro5/allegro.h> ALLEGRO_FILE *al_fopen(const char *path, const char *mode)

DESCRIPTIONCreates and opens a file (real or virtual) given the path and mode. The current file interface is used to open the file. Parameters: • path − path to the file to open • mode − access mode to open the file in ("r", "w", etc.) Depending on the stream type and the mode string, files may be opened in "text" mode. The handling of newlines is particularly important. For example, using the default stdio−based streams on DOS and Windows platforms, where the native end−of−line terminators are CR+LF sequences, a call to al_fgetc(3) may return just one character ('\n\[aq]) where there were two bytes (CR+LF) in the file. When writing out '\n\[aq], two bytes would be written instead. (As an aside, '\n\[aq] is not defined to be equal to LF either.) Newline translations can be useful for text files but is disastrous for binary files. To avoid this behaviour you need to open file streams in binary mode by using a mode argument containing a "b", e.g. "rb", "wb". Returns a file handle on success, or NULL on error.

SEE ALSOal_set_new_file_interface(3), al_fclose(3).
0
Johanes Gumabo
Data Size   :   4,984 byte
man-al_fopen.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 181,731
Visitor ID   :     :  
Visitor IP   :   18.220.227.250   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_nr_x|149|al_fopen.3|34|\n\[aq]) where there were two bytes (CR+LF) in the file. |(\[aq]\\n\[aq]) where there were two bytes (CR+LF) in the file. )         (rof_nr_x|149|al_fopen.3|35|\n\[aq], two bytes would be written instead. |When writing out \[aq]\\n\[aq], two bytes would be written instead. )         (rof_nr_x|149|al_fopen.3|36|\n\[aq] is not defined to be equal to LF either.) |(As an aside, \[aq]\\n\[aq] is not defined to be equal to LF either.) )