Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: A pointer reference as l-value PinmemberMaximilien20-Jan-13 3:18 
AnswerRe: A pointer reference as l-value PinmvpRichard MacCutchan20-Jan-13 3:56 
GeneralRe: A pointer reference as l-value PinmemberGeorge Nistor20-Jan-13 4:02 
GeneralRe: A pointer reference as l-value PinmvpRichard MacCutchan20-Jan-13 4:11 
GeneralRe: A pointer reference as l-value PinmemberFreak3021-Jan-13 4:43 
GeneralRe: A pointer reference as l-value [modified] PinmemberGeorge Nistor21-Jan-13 5:37 
GeneralRe: A pointer reference as l-value PinmemberFreak3021-Jan-13 22:08 
QuestionThe 'rename' function gives errno == -1 PinmemberAnthony Appleyard20-Jan-13 1:12 
I while ago I wrote a Visual C++ program which included 3 calls of the function 'rename(x,y)' (rename file x as y, where x and y are char*), to swop the names of two files . It works.
 
x=rename(orig,w); y=rename(cor,orig); z=rename(w,cor);
 
A day or 2 ago I wrote a similar program which calls the same. And all 3 calls of 'rename' do not rename the file but give result -1 = "unknown error". Please what might cause this?
AnswerRe: The 'rename' function gives errno == -1 Pinmemberpasztorpisti20-Jan-13 1:26 
GeneralRe: The 'rename' function gives errno == -1 PinmemberAnthony Appleyard20-Jan-13 3:01 
AnswerRe: The 'rename' function gives errno == -1 PinmvpRichard MacCutchan20-Jan-13 3:50 
GeneralRe: The 'rename' function gives errno == -1 PinmemberAnthony Appleyard20-Jan-13 4:32 
GeneralRe: The 'rename' function gives errno == -1 PinmvpRichard MacCutchan20-Jan-13 4:37 
GeneralRe: The 'rename' function gives errno == -1 PinmemberAnthony Appleyard20-Jan-13 5:02 
GeneralRe: The 'rename' function gives errno == -1 PinmvpRichard MacCutchan20-Jan-13 5:04 
GeneralRe: The 'rename' function gives errno == -1 [modified] PinmemberAnthony Appleyard20-Jan-13 5:11 
GeneralRe: The 'rename' function gives errno == -1 PinmvpRichard MacCutchan20-Jan-13 5:33 
GeneralRe: The 'rename' function gives errno == -1 PinmemberAnthony Appleyard20-Jan-13 5:57 
GeneralRe: The 'rename' function gives errno == -1 PinmvpRichard MacCutchan20-Jan-13 6:20 
GeneralRe: The 'rename' function gives errno == -1 [modified] PinmemberAnthony Appleyard20-Jan-13 11:03 
GeneralRe: The 'rename' function gives errno == -1 PinmvpRichard MacCutchan20-Jan-13 21:52 
GeneralRe: The 'rename' function gives errno == -1 [modified] PinmemberAnthony Appleyard20-Jan-13 22:11 
GeneralRe: The 'rename' function gives errno == -1 PinmvpRichard MacCutchan20-Jan-13 23:00 
QuestionRe: The 'rename' function gives errno == -1 PinmemberDavidCrow20-Jan-13 15:17 
AnswerRe: The 'rename' function gives errno == -1 PinmemberAnthony Appleyard20-Jan-13 18:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 31 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid