Line 1:
Line 1:
−
{{Infobox homebrewapp
+
'''libFAT''' is a library for accessing FAT file systems such as those on SD cards and USB mass storage devices. It is included as part of [[devkitPPC]].
−
| image =
−
| title = libfat
−
| desc = Library
−
| type = Development
−
| version = 20080530
−
| author = Community Project
−
| download = [http://sourceforge.net/project/showfiles.php?group_id=114505 Sourceforge]
−
| source = Yes
−
}}
−
−
If you get the error "warning: fat.h: No such file or directory" when compiling, you need to [http://sourceforge.net/project/showfiles.php?group_id=114505 download] libfat.
==Installation==
==Installation==
−
Move the 3 files, 2 static libraries and 1 header, into their corresponding subdirectories under your devkitPro [[libogc]] installation, i.e. /opt/devkitpro/libogc
+
libFAT is included as part of [[devkitPPC]], just specify -lfat in LIBS section of your Makefile to start using it.
== Sample Code ==
== Sample Code ==
−
The following is a piece of sample code that illustrates using libfat to do a recursive directory listing of the sd card. [[Media:Directory.zip|Download]]
+
The following is a piece of sample code that illustrates using libfat to do a recursive directory listing of the sd card.
+
* [[Media:Directory.zip|Sample code]]
−
==HomeBrew Using libfat==
+
==See Also==
−
Here is the list of [[:Category:Homebrew using libfat|homebrew using libfat]].
−
[[Category:Libraries]]
+
* [[:Category:Homebrew using libfat|Homebrew using libfat]].