vroooom
vroooom

Reputation: 583

Is there a wide character version of stat() (from sys/stat.h)?

I have been using stat() for checking the existence of a file, which I understand is better practice than trying to open a file. However, stat() doesn't work for filenames containing unicode characters in other languages. Is there a wide character version of stat(), or something equivalent that I can use?

If not, what is the next acceptable solution for checking existence of a file?

Upvotes: 2

Views: 3555

Answers (1)

Alon
Alon

Reputation: 4952

in windows you can use the wide char version : _wstat

Upvotes: 6

Related Questions