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/:/
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
2 matches
Mail list logo