>On Sat, 11 Dec 2010 00:09:04 +0000
>Ken Moffat <[email protected]> wrote:
>
> The main problem with writing either hello.c or a C++ variant
> (hopefully, as .cxx, but .C and .cpp are sometimes used) is that we
> haven't got an editor. You can, or course, use the editor on the
> host system to create the program and test that it compiles
Well.. there is always the school of thought which considers a humble
'cat' to be a reasonable and usable "text inputer". :)
Something along the lines of
cat > my_cool_program.c
#include <stdio.h>
main() {
printf("Hello World!\n");
}
<press Ctrl+d here to send an EOF character to cat and end text input>
:) :)
--
-Aleksandar Kuktin
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page