censor text without string.h & afx.h

This is a discussion on censor text without string.h & afx.h within the C++ Programming forums, part of the General Programming Boards category; I'm trying to write a program which reads in text through input redirection, calls a censor function which censors out ...

  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, 06: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-30-2002, 12:29 AM
  5. string.h functions help plz :)
    By ChrisE in forum C++ Programming
    Replies: 1
    Last Post: 03-05-2002, 03:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21