## NAME

         new_ext - replaces a file extension

## SYNOPSIS

          #include <stdlib.h>
          #include <string.h>
          #include <stdio.h>
          #include <sys/types.h>
          #include <sys/stat.h>
          #include <unistd.h>
          #include "CVIPimage.h"
          #include "CVIPhalftone.h"
          #include "CVIPluminance.h"
          #include "CVIPconutils.h"
          #include "CVIPgif.h"
          #include "CVIPras.h"
          #include "CVIPpnm.h"
          #include "CVIPccc.h"
          #include "CVIPtiff.h"
          #include "CVIPitex.h"
          #include "CVIPeps.h"
          #include "CVIPbin.h"
          #include "CVIPmagic.h"
          #include "CVIPvip.h"
          #include "pnm.h"
          #include "CVIPcompress.h"

         new_ext(const char *src, const char *ext)

          <src> - pointer to a character string
          <ext> - pointer to a character string in  the  form  of  an
         extension (e.g. .ppm)

## PATH

         $CVIPHOME/CONVERSION/convert.c

## DESCRIPTION

         Replace the last occuring extension of <src> with <des>

## TYPES AND CONSTANTS

## RETURN VALUES

         Pointer to newly allocated character string src.ext

## HISTORY

         History information recorded: None

## SEE ALSO

         libconverter

## AUTHOR

         Copyright (C) 1996 SIUE -  by  Scott  E.  Umbaugh  and  Greg
         Hance.