From bf062cc5fe8701972f370197bcbf3f3da3de5172 Mon Sep 17 00:00:00 2001 From: glenux Date: Mon, 23 Feb 2004 21:34:44 +0000 Subject: [PATCH] *** empty log message *** --- src/ids.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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