Okay. Here it is. I tidied it up a lot more. Removed global variables, made the coding style more consistent, used getopt() for argument processing, etc. It could still be a lot better, but it at least works now and should be easier to modify in the future.

Feel free to use this as you see fit (other than to sue me).


Attachments
151195-empeg-download.c (157 downloads)

_________________________
Bitt Faulk