~ubuntu-branches/ubuntu/utopic/binkd/utopic-proposed

« back to all changes in this revision

Viewing changes to amiga/rename.c

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2002-03-24 22:52:25 UTC
  • Revision ID: james.westby@ubuntu.com-20020324225225-7ru6itlapn03nl35
Tags: upstream-0.9.5a
ImportĀ upstreamĀ versionĀ 0.9.5a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <dos/dos.h>
 
2
#include <proto/dos.h>
 
3
 
 
4
int o_rename(char *from, char *to)
 
5
{
 
6
  if (Rename((STRPTR)from, (STRPTR)to)) /* cross-volume move won't work */
 
7
    return -1;
 
8
  else
 
9
    return 0;
 
10
}