+1, though it would probably be better to add a parameter to err to pass errno (or 0) rather than using the global in this way.
....Roy
+1, though it would probably be better to add a parameter to err to pass errno (or 0) rather than using the global in this way.