I’m trying to get the `_strrev` function to work but when I put my string into a function it doesn’t seem to work, just when I'm out of the function..
I’m getting so frustrated because I'm not getting anywhere with this..
Here's my code so far

```
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

void reverse(char *string) {
    char *str, temp;
    int begin = 0, end = 0;
    char word[64];
    int jaja = 0;

    printf("Your string from the function is %s\n", string);
    printf("%s\n", _strrev(&string)); //And why isnt this working
    jaja = strlen(string);
    printf("Your string has %d characters\n", jaja);
}
int main()
{
    char *str;
    scanf("%s", &str);
    printf("%s\n", _strrev(&str)); //How come this works

    reverse("Okay");

    getchar();
    return(0);
}

```

So I would love some guidance where my mistake is, I seriously cant find it.