search for: strn

Displaying 4 results from an estimated 4 matches for "strn".

Did you mean: str
2008 Apr 04
4
Arbitrary Precision Numbers
...0(2^n)) for (i in seq(e,0,-1)) { s <- s + (((2^n) %/% 10^i) %% 10) } s } The above doesnt work, as I am using an integer modulus which has insufficient precision. so I tried to coerce R to produce a full-precision integer and sum the digits of that: bsum2 <- function(n) { s <- 0 strn <- formatC(2^n, format="fg") sum(as.numeric(strsplit(strn,"")[[1]])) } This also doesnt seem to work. Is there another way I can do this in R? Cheers Rory -- View this message in context: http://www.nabble.com/Arbitrary-Precision-Numbers-tp16492549p16492549.html Sent from...
2008 Mar 08
1
[PATCH 1/1] : PCI detection code doesn't corrupt memory anymore
From : Erwan Velu <erwan.velu at free.fr> This patch fixes the pci detection stuff demo'd in pcitest.c32 - Fix a wrong type in malloc - Incorrect use of strdup This two fixes makes pcitest.c32 working far better, no more crash when running it twice. I'd like to thank Sebastian Herbszt for its reports and tests. This patch was made for 3.62-pre16 but applies fine on 3.63-pre1.
2009 Aug 03
1
use gnulib, and begin to pass its "make syntax-check" tests
...e_NEWS \ + sc_makefile_path_separator_check \ + sc_obsolete_symbols \ + sc_prohibit_S_IS_definition \ + sc_prohibit_atoi_atof \ + sc_prohibit_jm_in_m4 \ + sc_prohibit_quote_without_use \ + sc_prohibit_quotearg_without_use \ + sc_prohibit_stat_st_blocks \ + sc_prohibit_strcmp_and_strncmp \ + sc_prohibit_strcmp \ + sc_root_tests \ + sc_space_tab \ + sc_sun_os_names \ + sc_system_h_headers \ + sc_tight_scope \ + sc_two_space_separator_in_usage \ + sc_error_message_uppercase \ + sc_program_name \ + sc_require_test_exit_idiom \ + sc_makefile_check \ +...
2012 Sep 16
3
Remaining syntax-check errors in libguestfs
...else if (strcmp (guest_distro, "debian") == 0 || > examples/virt-dhcp-address.c:140: strcmp (guest_distro, "ubuntu") == 0) { > examples/virt-dhcp-address.c:151: else if (strcmp (guest_type, "windows") == 0) { > test-tool/test-tool.c:43://#define STRNEQ(a,b) (strcmp((a),(b)) != 0) > maint.mk: maint.mk: replace strcmp calls above with STREQ/STRNEQ > make: *** [sc_prohibit_strcmp] Error 1 We want to use strcmp in examples. They don't follow the ordinary code conventions used in the rest of libguestfs. There's something wrong with...