@@ -33,7 +33,7 @@ extern "C" {
3333 * const char* filename = spfname("/data/collections/rare/big_gem.txt");
3434 * printf("%s\n", filename);
3535 * // Prints: big_gem.txt
36- * @remarks Call `sfree` on the return value when done. `sp` stands for "sting path".
36+ * @remarks Call `sfree` on the return value when done. `sp` stands for "string path".
3737 * @related spfname spfname_no_ext spext spext_equ sppop sppopn spcompact spdir_of sptop_of spnorm
3838 */
3939#define spfname (s ) cf_path_get_filename(s)
@@ -47,7 +47,7 @@ extern "C" {
4747 * const char* filename = spfname("/data/collections/rare/big_gem.txt");
4848 * printf("%s\n", filename);
4949 * // Prints: big_gem
50- * @remarks Call `sfree` on the return value when done. `sp` stands for "sting path".
50+ * @remarks Call `sfree` on the return value when done. `sp` stands for "string path".
5151 * @related spfname spfname_no_ext spext spext_equ sppop sppopn spcompact spdir_of sptop_of spnorm
5252 */
5353#define spfname_no_ext (s ) cf_path_get_filename_no_ext(s)
@@ -61,7 +61,7 @@ extern "C" {
6161 * const char* ext = spfname("/data/collections/rare/big_gem.txt");
6262 * printf("%s\n", ext);
6363 * // Prints: .txt
64- * @remarks Call `sfree` on the return value when done. `sp` stands for "sting path".
64+ * @remarks Call `sfree` on the return value when done. `sp` stands for "string path".
6565 * @related spfname spfname_no_ext spext spext_equ sppop sppopn spcompact spdir_of sptop_of spnorm
6666 */
6767#define spext (s ) cf_path_get_ext(s)
@@ -72,7 +72,7 @@ extern "C" {
7272 * @brief Returns true if the file's extension matches, false otherwise.
7373 * @param s The path string.
7474 * @param ext The file extension.
75- * @remarks `sp` stands for "sting path".
75+ * @remarks `sp` stands for "string path".
7676 * @related spfname spfname_no_ext spext spext_equ sppop sppopn spcompact spdir_of sptop_of spnorm
7777 */
7878#define spext_equ (s, ext ) cf_path_ext_equ(s, ext)
@@ -84,7 +84,7 @@ extern "C" {
8484 * @param s The path string.
8585 * @return If the string is not a dynamic string from CF's string API, a new string is returned. Otherwise the
8686 * string is modified in-place. You must call `sfree` if a new dynamic string is returned, when done.
87- * @remarks `sp` stands for "sting path".
87+ * @remarks `sp` stands for "string path".
8888 * @related spfname spfname_no_ext spext spext_equ sppop sppopn spcompact spdir_of sptop_of spnorm
8989 */
9090#define sppop (s ) cf_path_pop(s)
@@ -97,7 +97,7 @@ extern "C" {
9797 * @param n The number of files to pop from the directory path.
9898 * @return If the string is not a dynamic string from CF's string API, a new string is returned. Otherwise the
9999 * string is modified in-place. You must call `sfree` if a new dynamic string is returned, when done.
100- * @remarks `sp` stands for "sting path".
100+ * @remarks `sp` stands for "string path".
101101 * @related spfname spfname_no_ext spext spext_equ sppop sppopn spcompact spdir_of sptop_of spnorm
102102 */
103103#define sppopn (s, n ) cf_path_pop_n(s, n)
@@ -125,7 +125,7 @@ extern "C" {
125125 * const char* filename = spfname("/data/collections/rare/big_gem.txt");
126126 * printf("%s\n", filename);
127127 * // Prints: /rare
128- * @remarks `sp` stands for "sting path". Call `sfree` on the return value when done.
128+ * @remarks `sp` stands for "string path". Call `sfree` on the return value when done.
129129 * @related spfname spfname_no_ext spext spext_equ sppop sppopn spcompact spdir_of sptop_of spnorm
130130 */
131131#define spdir_of (s ) cf_path_directory_of(s)
@@ -139,7 +139,7 @@ extern "C" {
139139 * const char* filename = spfname("/data/collections/rare/big_gem.txt");
140140 * printf("%s\n", filename);
141141 * // Prints: /data
142- * @remarks `sp` stands for "sting path". Call `sfree` on the return value when done.
142+ * @remarks `sp` stands for "string path". Call `sfree` on the return value when done.
143143 * @related spfname spfname_no_ext spext spext_equ sppop sppopn spcompact spdir_of sptop_of spnorm
144144 */
145145#define sptop_of (s ) cf_path_top_directory(s)
@@ -263,7 +263,7 @@ typedef struct CF_File CF_File;
263263 * @related CF_File CF_Stat cf_file_type_to_string
264264 */
265265#define CF_FILE_TYPE_DEFS \
266- /* @entry A reguler file, such as a .txt or .pdf file. */ \
266+ /* @entry A regular file, such as a .txt or .pdf file. */ \
267267 CF_ENUM (FILE_TYPE_REGULAR , 0 ) \
268268 /* @entry A directory/folder. */ \
269269 CF_ENUM(FILE_TYPE_DIRECTORY , 1 ) \
@@ -338,7 +338,7 @@ CF_API const char* CF_CALL cf_fs_get_base_directory(void);
338338 * @function cf_fs_get_working_directory
339339 * @category file
340340 * @brief Returns the current working directory in platform-dependent notation.
341- * @remarks Not all platforms have the concept of a working directory, but this function will sill try to return something sane in these cases.
341+ * @remarks Not all platforms have the concept of a working directory, but this function will still try to return something sane in these cases.
342342 * @related cf_fs_get_base_directory cf_fs_set_write_directory cf_fs_get_user_directory cf_fs_mount cf_fs_dismount cf_fs_get_working_directory
343343 */
344344CF_API const char * CF_CALL cf_fs_get_working_directory (void );
@@ -395,7 +395,7 @@ CF_API const char* CF_CALL cf_fs_get_user_directory(const char* company_name, co
395395 * modding or download patches, as duplicate entries will be searched for on the path as normal,
396396 * without the need to overwrite each other on the actual disk.
397397 *
398- * You can mount an actual directory or an archive file. If it's an archive the vitrual file
398+ * You can mount an actual directory or an archive file. If it's an archive the virtual file
399399 * system will treat it like a normal directory for you. There are a variety of archive file
400400 * formats supported (see top of file).
401401 *
0 commit comments