so I've almost finished my assignment where I basically recreated the UNIX ls -l command, but the only thing missing is the 'total #' that is shown at the beginning of the ls -l command as shown below.
total 68
From my understanding this is the total number of disk blocks taken by the directory. Is there a way to find this value from the stat function call itself? Additionally, I apologize if this may be a repeated question, but I couldn't find any resources that provided clear information. Thanks in advance.