Thread: Equivalent of Dos 'copy' in C ?

  1. #16
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by MisterIO View Post
    Again, this is completely irrelevant to the previous discussion and I never said that. It just seems to me that you're unable to admit that you were wrong.
    Wikipedia:

    Portability is the software codebase feature to be able to reuse the existing code instead of creating new code when moving software from an environment to another.
    Suppose my program relies on glib to implement file copies. I want to compile my code to run on FooBox, a platform glib does not support. It seems I'll need to write some new code, rather than use the code I already have. Ergo, non-portable.

    I'm not saying that glib (or something else) isn't a good solution, just that introducing a third party library doesn't magically make code portable.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  2. #17
    Registered User
    Join Date
    Nov 2008
    Posts
    75
    Quote Originally Posted by brewbuck View Post
    Wikipedia:
    Suppose my program relies on glib to implement file copies. I want to compile my code to run on FooBox, a platform glib does not support. It seems I'll need to write some new code, rather than use the code I already have. Ergo, non-portable.

    I'm not saying that glib (or something else) isn't a good solution, just that introducing a third party library doesn't magically make code portable.
    You're still wrong. The fact that architecture x may not be available among the architectures supported just means that the library hasn't been ported to that architecture. Again, that can be said for the c standard library too.
    Anyway, if you want to create your own definition of portability, you can do it. It's just that it's different from that of the rest of the world of programmers.

  3. #18
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Closed. If the OP wants it reopened they can PM me or another mod.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creepy DOS and BIOS functions (need help!!!)
    By James00 in forum C Programming
    Replies: 9
    Last Post: 05-05-2003, 12:40 AM
  2. how many old school DOS programmers are left?
    By Waldo2k2 in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 02-01-2003, 05:14 PM
  3. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  4. Quick ? on copy constructor
    By Traveller in forum C++ Programming
    Replies: 3
    Last Post: 05-03-2002, 10:31 AM
  5. Copy Constructor Help
    By Jubba in forum C++ Programming
    Replies: 2
    Last Post: 11-07-2001, 11:15 AM