On my distribution of Linux, it seems like I need to define a feature test macro ( POSIX C SOURCE 200809L ) to expose functions like opendir() and readdir() when compiling in -std c11 mode. Try having a look at the manual page for opendir(...
This is correct, other than saying "just happens to be". As you are the one who determines what memory (and thus, the size of the memory) that dest points to, ensuring there is enough remaining space for the src string is your responsibility.
It's hard to tell without looking at your system, but it sounds like there
isn't enough space allocated in the destination array to hold the result.
Remember, strcat doesn't contain any mechanism for allocating more space,
so the destination has to ha...
One thing to be aware of here in particular is whether you are using spaces or tabs for indentation. Spaces are a consistent size across editors, whereas tabs may vary (common sizes include 4 and 8 spaces). That's not a problem, so long as you only u...
I think some installations come with things like autoindent and syntax
highlighting turned on by default. It certainly seems that way on my home PC
(running Linux Mint 20).
Given this is a common problem, there's actually a specific mode that
(temporaril...
By default, the Ubuntu system has a view of your Windows filesystem mounted at
the path " mnt c". So, if you navigate to " mnt c ExampleDir", you'll be able
to see the same files as Windows sees at "C ExampleDir".
With that in mind, you can then use st...
Running the "wsl" command with no additional arguments should launch the
default Linux distribution. You can also run "ubuntu" to specifically launch
the Ubuntu distribution.
There should also be an "Ubuntu" entry added to your start menu, that will
brin...
So, we've got the helpful cheat-sheet on using frequent commands
https teaching.csse.uwa.edu.au units CITS2002 labsheets frequentcommands.php
Your shell (the program that helps you manage and run commands in your
terminal) also has a bunch of handy k...