On Mar 28, 12:39 pm, Mehrzad Irani <
i.mehr...@gmail.com> wrote:
> Yes I am naming the file I want to create.
>
> My code goes like this:
>
> #include <stdioh>
> ...
> #include <cextdecs(FILE_CREATE_)>
>
> int main(){
> char *filename="file123";
> int d;
>
> d = FILE_CREATE_(filename, strlen(filename));
>
> ...
>
> return 0;
>
> }
>
> And, I have tried with the filename being "\abc.$def.ghi.jkl" and it still hadn't worked.
>
> However using the simple C API of fopen to create a file, worked, but in the creation of the file I couldn't mention the pext, sext, recordsize, maxextents etc...
>
> Any help?
Have you checked the return code? You might try declaring filename as
an array rather than a pointer and see if your luck improves.