14 lines
568 B
C
14 lines
568 B
C
#include <stdio.h>
|
|
|
|
/**
|
|
* @brief Return the all program in a string using placeholder
|
|
*
|
|
* @return all the program even this comment
|
|
*/
|
|
const char *get_program(void) {
|
|
return "#include <stdio.h>%1$c%1$c/**%1$c * @brief Return the all program in a string using placeholder%1$c *%1$c * @return all the program even this comment%1$c */%1$cconst char *get_program(void) {%1$c%2$creturn %3$c%4$s%3$c;%1$c}%1$c%1$cint main(void) {%1$c%2$cprintf(get_program(), 10, 9, 34, get_program());%1$c}%1$c";
|
|
}
|
|
|
|
int main(void) {
|
|
printf(get_program(), 10, 9, 34, get_program());
|
|
}
|