Thread: censor text without string.h & afx.h

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    1

    censor text without string.h & afx.h

    I'm trying to write a program which reads in text through input redirection, calls a censor function which censors out a user-defined word, and then outputs the censored text. Is there anyway to do this without using <string.h> and <afx.h> functions? Thanks is advance.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One solution is C/C++ cstring and mem functions. You will have to utilize quite a few dynamic allocations and pointers.

    strlen()
    strstr()
    strcpy()
    memchr()
    memcpy()

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Understanding strtok from string.h library
    By yougene in forum C Programming
    Replies: 6
    Last Post: 03-07-2008, 01:14 AM
  2. Where is strcpy() defined? (Can't find in string.h ect)
    By Zero_Point in forum C++ Programming
    Replies: 6
    Last Post: 04-03-2006, 05:14 PM
  3. string.h
    By moemen ahmed in forum C++ Programming
    Replies: 6
    Last Post: 02-09-2003, 08:41 PM
  4. string.h help
    By gcnmetroid in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2002, 11:29 PM
  5. string.h functions help plz :)
    By ChrisE in forum C++ Programming
    Replies: 1
    Last Post: 03-05-2002, 03:12 PM