I need to convert a comma separated string to an array in proc, I am getting the string in:
while ((ch = getopt(argc, argv, "do:c")) != EOF)
{
switch (ch)
{
case 'c':
get_order_type(optarg);
get_order_type(optarg)
is comma separated string like 30,31,32
I need to get each string.