0

My embedded device uses busybox and it only has getopt. I wanted to port getopts to my embedded device and was looking for getopts source to do that. Where can I find getopts source?

Ankur Agarwal
  • 23,692
  • 41
  • 137
  • 208

1 Answers1

1

You should find it in bash source. You can download bash from Here

You will find getopts.def inside builtins/ dir. mkbuiltins -D . getopts.def will create getopts.c. You will have to do configure and make which will create mkbuiltins inside builtins/ directory.

dpp
  • 1,748
  • 11
  • 7