W
W
westakof2019-12-12 15:45:07
C++ / C#
westakof, 2019-12-12 15:45:07

How to remap f8 key to option+M on Macbook?

How to remap f8 key to option+M on Macbook?
Mac OS 10.15.1
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2019-01-21
@Razor98

why am I incorrectly referencing a pointer in a struct?
zmienna_strukt.a=NULL;
...
scanf("%s", wsk->a);

You refer correctly, but the pointer points to NULL. It is impossible to read there scanf'om. In order to be able to read, it is necessary that the pointer points to the allocated memory of sufficient size. For example like this:
struct morgan zmienna_strukt;
    struct morgan *wsk;
    unsigned char buf[100];

    wsk=&zmienna_strukt;

    printf("Впиши значение: ");
    fflush(stdout);
    scanf("%d", &zmienna_strukt.b);
    printf("%d \n\n", zmienna_strukt.b);

    zmienna_strukt.a=buf;
    buf[0] = 0;
    printf("%s \n\n", zmienna_strukt.a);

    printf("Впиши значение: ");
    fflush(stdout);
    scanf("%s", wsk->a);
    printf("%s \n\n", wsk->a);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question