gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > mkdir () and mode_t value

#161264 - cornaljoe - Thu Jul 31, 2008 12:24 pm

I'm having trouble creating directories over 8 characters if the first 8 are all caps. If tried using different mode_t values: S_IRWXU,S_IRWXU,S_IRWXU,0700,0,1. All give me the same results. How do I make it able to use long CAP filenames?

#161280 - silent_code - Thu Jul 31, 2008 8:55 pm

My advise:
If you don't want to select your users by their OS and filesystem, use maximum compatibility: no capitals for case sensitivity. (Assuming DOS is being used these days: 8.3 - but that would be a little extreme.)
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.

#161291 - cornaljoe - Thu Jul 31, 2008 11:09 pm

Is there a character function that makes all the letters in the string lowercase?

Edit: Found the function tolower (); This can be a temporary fix until I find the real problem.