/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <stdio.h>
#include <string.h>

int main() {
   string_t s, s1 = "He is smart, but you are smarter", 
            s2 ="smart", s3="great", s4="tall";

   printf("s1 = %s\n", s1);
   s = strrep(s1, s2, s3);
   printf("s1 = %s\n", s1);
   printf("s = %s\n", s);
   s = strrep(s1, s2, s3);
   printf("s1 = %s\n", s1);
   printf("s = %s\n", s);
   s = strrep(s1, s2, s4);
   printf("s1 = %s\n", s1);
   printf("s = %s\n", s);
}
