String manipulation

This is a discussion on String manipulation within the C++ Programming forums, part of the General Programming Boards category; Hi all, i got some simple and strange problem can anyone help me in that, my task is i have ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    99

    A simple problem

    Hi all,
    i got some simple and strange problem can anyone help me in that,
    my task is i have sting as filename like:
    al.odl.gz
    i want to reduce this to
    al.odl
    without using strncpy() function can any body give me idea
    because 'c' does not support most of the functions.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    Split the not really related post into a new thread.

    Anyway, is this C or C++?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 06:02 AM
  2. Compile Error that i dont understand
    By bobthebullet990 in forum C++ Programming
    Replies: 5
    Last Post: 05-05-2006, 09:19 AM
  3. Replies: 4
    Last Post: 03-03-2006, 01:11 AM
  4. Linked List Help
    By CJ7Mudrover in forum C Programming
    Replies: 9
    Last Post: 03-10-2004, 09:33 PM
  5. string manipulation
    By SPEKTRUM in forum Linux Programming
    Replies: 3
    Last Post: 01-26-2002, 10:41 AM

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