What do you want to save?
Add Code snippet
New code examples
-
VBA 2021-10-26 14:22:12
xl vba check if bit set in 64-bit longlong integer
'Extremely fast VBA function to test if a specified bit is set 'within a 64-bit LongLong integer. 'Bits are numbered from 0 to 63, so the first (least significant) bit 'is bit 0. 'Note: we do not inspect bit 63, the sign bit. 'Note: the LongLong data t... Add solution -
C 2021-10-23 13:36:13
write a program to find factorial of a number
//Factorial of a given number #include <stdio.h> //This function returns factorial of the number passed to it long int factorialOf(int number){ long int factorial = 1; while(number){ factorial*=number; number-=1; } ... Add solution -
C 2021-10-22 11:32:07
convert string to uppercase in c
For those of you who want to uppercase a string and store it in a variable (that was what I was looking for when I read these answers). #include <stdio.h> //<-- You need this to use printf. #include <string.h> //<-- You need this to u... Add solution -
C 2021-10-20 17:10:16
convert string to int error checking c
const char *number = "10"; char *end; long int value = strtol(number, &end, 10); if (end == number || *end != '\0' || errno == ERANGE) printf("Not a number"); else printf("Value: %ld", value); Add solution -
VBA 2021-10-19 10:59:09
excel vba right word from Long Integer
'If n is a 4-byte Long Integer, the Low (Left) Word is: If n And &H8000& Then LoWord = n Or &HFFFF0000 Else LoWord = n And &HFFFF& End If 'If n is a 4-byte Long Integer, the High (Right) Word is: HiWord = (n And &HFFFF0000)... Add solution -
VBA 2021-10-15 04:32:06
vba inspect if bit is set in 64-bit longlong integer
'Extremely fast VBA function to test if a specified bit is set 'within a 64-bit LongLong integer. 'Bits are numbered from 0 to 63, so the first (least significant) bit 'is bit 0. 'Note: we do not inspect bit 63, the sign bit. 'Note: the LongLong data t... Add solution -
Other 2021-10-09 01:14:05
time_t to int
long int t = static_cast<long int> (time(NULL)); Add solution
Best helpers
TexasPete
+5
ADG
+5
Hayden
+5
Leevit2bvr
+5
Ken Joe
+5
Apsillers
+5
Bad Dog
+5
Elarrow
+5
MohitC
+5
Alex Kazan
+5
Janeheroine
+5
O4tlulz
+5
Savoie
+5
Tom Pace
+5
Tri cultural
+5
Janell
+5