From wl2776 at gmail.com  Tue Jan 23 12:57:49 2007
From: wl2776 at gmail.com (Vladimir Eremeev)
Date: Tue, 23 Jan 2007 03:57:49 -0800 (PST)
Subject: [Rd] is it necessary to always register C routines with
 R_registerRoutines?
In-Reply-To: <8519680.post@talk.nabble.com>
References: <8519680.post@talk.nabble.com>
Message-ID: <8520292.post@talk.nabble.com>


sorry, forgot to mention.

krui_getVersion returns char *

SEXP snns_getVersion(void)
{SEXP version;
 char *v;
  
  PROTECT(version=NEW_CHARACTER(15));
  v=CHARACTER_POINTER(version);
  strcpy(v,krui_getVersion());
  UNPROTECT(1);
  return version;
}


-- 
View this message in context: http://www.nabble.com/is-it-necessary-to-always-register-C-routines-with-R_registerRoutines--tf3063486.html#a8520292
Sent from the R devel mailing list archive at Nabble.com.



[Rd] is it necessary to always register C routines with R_registerRoutines?
Vladimir Eremeev