How to use function lbb_main of the libbusybox.so to a C program

Tiago Araujo da costa tiagoarcosta at yahoo.com.br
Fri May 15 19:51:34 UTC 2020


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
ninalemretawnianlem

If possible, you could generating the C equivalent of the commands mentioned above, using the lbb_main function, of the libbusybox.so library?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20200515/3b82b745/attachment.html>


More information about the busybox mailing list