Xref: utzoo comp.unix.programmer:2159 comp.lang.c:40538 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!uwm.edu!spool.mu.edu!olivea!uunet!interet!iris From: iris@interet.UUCP (User) Newsgroups: comp.unix.programmer,comp.lang.c Subject: Re: methods for putting labels into your software? Message-ID: <25@interet.UUCP> Date: 27 Jun 91 14:25:02 GMT References: <1991Jun26.165609.9692@athena.mit.edu> Reply-To: iris@interet.UUCP (User) Distribution: usa Organization: Interet, Maplewood, NJ Lines: 40 In article <1991Jun26.165609.9692@athena.mit.edu> mlevin@jade.tufts.edu writes: > > I'd like to hear suggestions, or any tricks that the pros out there >know about, for putting some kind of text label or code into your >executable (compiled and linked from C code) so that if anyone were to >copy a part of the code, you could know it was a copy by somehow >seeking out that label. For obvious reasons, I won't tell you EXACTLY what we do but it amounts to something like this: static short copyright_stamp[] = CONSTANT1, /* a few starting fixed bytes to search for */ CONSTANT2, CONSTANT3, CONSTANT4, 'T' * CONSTANT5, 'h' * CONSTANT6, 'i' * CONSTANT7, 's' * CONSTANT8, ' ' * CONSTANT9, 'i' * CONSTANT11, 's' * CONSTANT12, ' ' * CONSTANT13, 'm' * CONSTANT14, 'i' * CONSTANT15, 'n' * CONSTANT16, 'e' * CONSTANT17, '!' * CONSTANT18, 0; Make sure whatever operation you perform on the individual characters is reversible. ========================================================================== Iris Engelson uunet!iris@interet Director of Software Development Tel: 201-763-1200 Interet Fax: 201-763-5120 111 Dunnell Road Maplewood, NJ 07040