fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct mu{
  4. const char* s;
  5. unsigned n;
  6. } mu;
  7.  
  8. #define o(s) {s,sizeof(s)}
  9.  
  10.  
  11. int main()
  12. {
  13. mu t1=o("___\0+++\0---");
  14. printf("%d : \"%.*s\"\n",t1.n,t1.n,t1.s);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 4512KB
stdin
Standard input is empty
stdout
12 : "___"