We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc34e49 + a84a0da commit aa96633Copy full SHA for aa96633
src/SD.cpp
@@ -54,9 +54,11 @@
54
55
namespace SDLib {
56
57
- // Used by `getNextPathComponent`
58
-#define MAX_COMPONENT_LEN 12 // What is max length?
59
-#define PATH_COMPONENT_BUFFER_LEN MAX_COMPONENT_LEN+1
+// Used by `getNextPathComponent`
+#define MAX_COMPONENT_LEN 12
+#define PATH_COMPONENT_BUFFER_LEN (MAX_COMPONENT_LEN + 1)
60
+// BASENAME:char(8) + '.':char(1) + EXT:char(3) = 12 (a.k.a short 8.3 name)
61
+// And an extra space for '\0' for path buffer
62
63
bool getNextPathComponent(const char *path, unsigned int *p_offset,
64
char *buffer) {
0 commit comments