(Although I think the use of malloc() and strcpy() to handle the -[0-9]+ case seems rather unnecessary...)
(Although I think the use of malloc() and strcpy() to handle the -[0-9]+ case seems rather unnecessary...)