Aug 25, 2003 #1 sujincls Programmer Jun 14, 2002 6 IN Could you please tell me how to format a string in C For example, input : "Hello" output: "**********Hello**********" Thanks, Sujin
Could you please tell me how to format a string in C For example, input : "Hello" output: "**********Hello**********" Thanks, Sujin
Aug 25, 2003 #2 Salem Programmer Apr 29, 2003 2,455 GB Wouldn't this be better posted on the C forum? Upvote 0 Downvote
Aug 25, 2003 #3 grega Programmer Feb 2, 2000 932 GB I'm not a C programmer, but I would use printf ... printf("********%s********",argv[1]) ... or whatever the syntax is for the input. Read the man page on printf for more info. Greg. Upvote 0 Downvote
I'm not a C programmer, but I would use printf ... printf("********%s********",argv[1]) ... or whatever the syntax is for the input. Read the man page on printf for more info. Greg.