AW: How to use function lbb_main of the libbusybox.so to a C program
Walter Harms
wharms at bfs.de
Sun May 17 16:12:50 UTC 2020
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 <busybox-bounces at busybox.net> im Auftrag von Tiago Araujo da costa <tiagoarcosta at yahoo.com.br>
Gesendet: Freitag, 15. Mai 2020 21:51:34
An: busybox at busybox.net
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?
More information about the busybox
mailing list