fopen fails with LFN... solved

C and PASCAL (or any other high-level languages) in here please

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11976
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

fopen fails with LFN... solved

Postby wongck » Sun Sep 25, 2016 1:49 am

I am using gcc v5.4.2.
When I pass the long file name with spaces to be opened by standard fopen(), I get a NULL return.
I have pdomain(1) set. I am reading from FAT32.
How to open a LFN file using fopen() ?
Last edited by wongck on Sun Sep 25, 2016 3:58 pm, edited 1 time in total.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 11976
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: fopen fails with LFN

Postby wongck » Sun Sep 25, 2016 3:57 pm

My bad... the Drag & drop protocol added quotes around the filename with spaces. :roll: That's the culprit.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list


Social Media

     

Return to “C / PASCAL etc.”

Who is online

Users browsing this forum: No registered users and 2 guests