Any tool/script available to convert c99 style comments // into c style comments /* ..*/ into whole projects?
if i have code like this
// printf("stcakoverflow");
then it would be converted like
/* printf("stcakoverflow"); */
and also
int temp // this is temp varialbe
converted into
int temp /* this is temp varialbe */
For a command-line example, try e.g. something like this:
The above results in
For a real file you could use e.g.
catinstead ofecho, it’s the piping tosedand thesedcommand that does the “magic”.Edit: How to do it for lots of files
Something like this maybe:
Now all converted source files will be in a folder
converted-files.