Hello, i am not sure that i understand your idea. you think to use libbusybox as a kind of compiler ?
note: under normal condition this is not very effective as it is cheaper to write a simple c programm that does exactly what you want. ________________________________________ Von: busybox <[email protected]> im Auftrag von Tiago Araujo da costa <[email protected]> Gesendet: Freitag, 15. Mai 2020 21:51:34 An: [email protected] Betreff: How to use function lbb_main of the libbusybox.so to a C program Good afternoon busybox team. Suppose the fruit.txt file has the following content $ cat fruit.txt watermelon melon Strawberry avocado lemon orange Apple If you run the following commands, the results generated will be: $ melon=`grep "melon" fruit.txt` $ echo "$melon" watermelon melon $ echo "$melon" | sed 's /on/an/g;s/$/in/' | rev ninalemretaw nianlem If possible, you could generating the C equivalent of the commands mentioned above, using the lbb_main function, of the libbusybox.so library? _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
