Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Consider:
For a "Save As" dialog, you pipe into an external util from your application, passing in directory and an extension filter, something like `|` separated "Description (*.ext)".
Your code waits as the user picks. When they press OK, you get back a filename.
---
Quick poll:
If the user chose an extension/filter, but wrote the filename _without_ an extension, then what is the expected output?
[A] The filename as-is, no extension.
[B] The filename with the extension added, according to the selected filter, unless the filter was just "All Files (*.*)".
[C] "\1\0\0\0" and errno set to `EDEADLOCK`.
question
option c is there to fuck with you