Hi there,
i am looking for a macro which replaces a string "string" with its
character initialisation form {'s', 't', 'r', 'i', 'n', 'g'}. this
should work for strings of different length.
Is there any possibility to do this?
Or is the only solution to write a function which is quite hard since i
need to allocate memory for the char[] and using a functon makes some
problems with memory leaks then.
thanks in advance and greetings
Axel Klein
i am looking for a macro which replaces a string "string" with its
character initialisation form {'s', 't', 'r', 'i', 'n', 'g'}. this
should work for strings of different length.
Is there any possibility to do this?
Or is the only solution to write a function which is quite hard since i
need to allocate memory for the char[] and using a functon makes some
problems with memory leaks then.
thanks in advance and greetings
Axel Klein
Comment