Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 63257

Forum Post: RE: How to have double quotes in sprintf?

$
0
0
Ram, The string doesn’t actually contain the backslashes and does indeed just contain the quotation marks. If you do: printf(“%s\n” cmd) you won’t see the backslashes (just the quotation marks) because they are not actually present. The backslashes are required when adding a quotation mark within a literal string to prevent the quotation mark from ending the string. When values containing embedded quotation marks are shown as return values in the CIW or printed with println, then the embedded quotation marks are shown so that the displayed value could be copied and reused as valid input. Andrew

Viewing all articles
Browse latest Browse all 63257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>