We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afbfddb commit 0fd2b9aCopy full SHA for 0fd2b9a
CEdev/examples/library_examples/fileio/demo_4/bin/FILEIO4.8xp
-25 Bytes
CEdev/examples/library_examples/fileio/demo_4/src/main.c
@@ -27,13 +27,12 @@ void main(void) {
27
int in;
28
29
/* Get the answer variable */
30
- if(ti_RclVar(TI_REAL_TYPE, ti_Ans, &real_in))
31
- return;
32
-
33
- if((in = os_RealToInt24(real_in)) < 1)
34
+ if(ti_RclVar(TI_REAL_TYPE, ti_Ans, &real_in)) return;
+ if((in = os_RealToInt24(real_in)) < 1) return;
35
36
prime_factors((unsigned)in);
+
+ if(!total_primes) return;
37
list_out = ti_MallocList(total_primes);
38
39
for(i=0; i<total_primes; i++) {
0 commit comments