diff --git a/src/ids.c b/src/ids.c index 3582789..1b75a0d 100644 --- a/src/ids.c +++ b/src/ids.c @@ -117,6 +117,16 @@ int msgQueueIdIntern( return 0; } +int msgQueueElemIdIntern( + msgQueueElemId dest, + msgQueueId src + int counter){ + if (strlen(src)>MSGSPACE_ID_LEN){ + return -1; + } + sprintf(dest,"%s-%d",(char *)src,counter); + return 0; +} #endif