i tried to debug my code in vscode and it worked as i wanted but when i put it in vagrant it dosnt work for somereason and gives me nothing im an alx student and trying to learn coding so it may be obvious for u but rly i spent hours on this and it didn't work in vagrant and my tasks have to work in vagrant not vscode
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdbool.h>
int main(int argc, char *v, char **env)
{
        int i, j;
        char *c = "PATH";
        char *ptr;
        j = 0;
        i = 4;
        while(*env)
        {
                if (**env == *c)
                {
                        ptr = *env;
                        while (*ptr == *c)
                        {
                                j++;
                                ptr++;
                                c++;
                                if (j == i)
                                {
                                        printf("%s", ptr);
                                }
                                if (*c != *ptr)
                                {
                                        j = 0;
                                        break;
                                }
                        }
                }     
        env++;
        }
}
 
    