what does sizeof(dirs) represent? Is the size of the total array?
what does sizeof(*dirs) represent?
*dirs is same with
sizeof(*dirs) is the size of the first element. (well
,the size of every element because they are the same)
sizeof(dirs)/sizeof(*dirs) will be the number of
elements in the array.