Link to home
Start Free TrialLog in
Avatar of jmsloan
jmsloan

asked on

Reformating a number

I need to add something to some C code, but I am not efficient in C.

I have a number

12.25-

I would like to remove the minus sign and add it to the front, but all numbers are not negative.  So I first need to check and see if a minus sign exists, if it does take it out and put at the front.

Thanks,

jmsloan
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thats right ... change it to memmove .. thanks cwwkie