# mcorest_stop
RT

### Prototype

        MCO_RET mcorest_stop(void);

### Description

> `mcorest_stop()` sends the "stop" message to the RESTrt web service (informing it to finish its web service handling loop).

>         rest_task_h = mco_create_thread(rest_loop_task, NULL);
>         if (rest_task_h == NULL) {
>             printf("ERROR: could not create REST task\n");
>             return;
>         }
>         ...
>         printf("Sending stop signal to rest\n");
>         mcorest_stop();
>         mco_join_thread(rest_task_h);

### Return Codes

MCO_S_OK | the "stop" message sent successfully

### Files

Header file:
mcorestrt.h
Source file:
mcorestrt.c
Library:
libmcorestrt.a