Re: Re:Sprintf issue

2002-02-18 Thread David Means
This sounds more like a sed problem than an sprintf problem. First, can you get the sed command to work at the cygwin prompt? If not, it's quite possible that the environment from which your running the program does not have sed in its' path. You should also try this: `echo "yada" | sed 's/:/

Re:Sprintf issue

2002-02-18 Thread Jorge Goncalvez
Hi, i tried to modified a C program running on linux and make it running on windows with gcc for cygwin: like this: sprintf(arpbuf, "arp -s %s `echo %s | sed -e s/:/-/g`" piaddr (lease -> ip_addr), print_hw_addr (lease -> hardware_addr.htype, lease -> ha