X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fstrbuf.c;h=915cd3ac99bc4ae6491512d2628e26d667a36f6a;hb=1f28b2deb4e118cd2d2a5138ccb4cc45841c136d;hp=9314f097ab5950091eb0977b87106883c828bd43;hpb=4693cfb3bfcb87331237d157b46935c004c2f9ec;p=elogind.git diff --git a/src/shared/strbuf.c b/src/shared/strbuf.c index 9314f097a..915cd3ac9 100644 --- a/src/shared/strbuf.c +++ b/src/shared/strbuf.c @@ -3,7 +3,7 @@ /*** This file is part of systemd. - Copyright 2012 Kay Sievers + Copyright 2012 Kay Sievers systemd is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -27,11 +27,12 @@ /* * Strbuf stores given strings in a single continous allocated memory - * area. Identical strings are de-duplicated. If the tail of a string - * already exist in the buffer, the tail is returned. + * area. Identical strings are de-duplicated and return the same offset + * as the first string stored. If the tail of a string already exists + * in the buffer, the tail is returned. * - * A Particia Trie is used to maintain the information about the stored - * strings. + * A trie (http://en.wikipedia.org/wiki/Trie) is used to maintain the + * information about the stored strings. * * Example of udev rules: * $ ./udevadm test .