]> andersk Git - splint.git/blobdiff - src/cstringSList.c
*** empty log message ***
[splint.git] / src / cstringSList.c
index 8fd4b715ffb6ecccbb4776d35ec1e1d1fdd911b6..39956f58d87a295ebec6454af0f5d72268a831f4 100644 (file)
@@ -1,6 +1,6 @@
 /*
 ** LCLint - annotation-assisted static program checker
-** Copyright (C) 1994-2000 University of Virginia,
+** Copyright (C) 1994-2001 University of Virginia,
 **         Massachusetts Institute of Technology
 **
 ** This program is free software; you can redistribute it and/or modify it
@@ -102,6 +102,14 @@ cstringSList cstringSList_add (cstringSList s, /*@exposed@*/ cstring el)
   return s;
 }
 
+cstring
+cstringSList_get (cstringSList s, int index)
+{
+  llassert (s != NULL);
+  llassert (index < s->nelements);
+  return s->elements[index];
+}
+
 cstring
 cstringSList_unparse (cstringSList s)
 {
This page took 0.029619 seconds and 4 git commands to generate.