Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7642683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:15:10+00:00 2026-05-31T09:15:10+00:00

I write the code in the below manner but output prints in console only

  • 0

I write the code in the below manner but output prints in console only two times.
Please friends help me

#include <mach/mach_types.h>
#include<libkern/libkern.h>

kern_return_t MyIntension_start(kmod_info_t * ki, void *d);

kern_return_t MyIntension_stop(kmod_info_t *ki, void *d);

kern_return_t MyIntension_start(kmod_info_t * ki, void *d)
{
    for(int i = 0 ;i < 10 ;i++)
    {
        printf("welcome to apple world\n");
    }
    return KERN_SUCCESS;
}


kern_return_t MyIntension_stop(kmod_info_t *ki, void *d)
{
    for(int i = 0 ;i < 10 ;i++)
    {
        printf("good bye to cruel apple world\n");
    }   
    return KERN_SUCCESS;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:15:11+00:00Added an answer on May 31, 2026 at 9:15 am

    execute the same code two times then you get four lines.

    kern_return_t MyIntension_start(kmod_info_t * ki, void *d);
    
    kern_return_t MyIntension_stop(kmod_info_t *ki, void *d);
    
    kern_return_t MyIntension_start(kmod_info_t * ki, void *d)
    
    {
    
    for(int i = 0 ;i < 10 ;i++)
    {
    
    printf("welcome to apple world\n");
    
    
           }
    
    
    return KERN_SUCCESS;
    
    
    }
    kern_return_t MyIntension_stop(kmod_info_t *ki, void *d)
    
    {
    
    for(int i = 0 ;i < 10 ;i++)
    
    {
    
    printf("good bye to cruel apple world\n");
    
    }
    
    return KERN_SUCCESS;
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use irb. I write the code below. ax..bc I expect axayazbabbbc But the
I write the code below to delete a file: FileInfo file = new FileInfo(filename);
I use the below code to write code to query a web method in
I try to lock a file and write to it with the code below:
I try to write code but it work not the same. I want member_preinstall
How can I write the code below so that it passes the user.id. Given
I'm trying to write code that can print only filled text boxes in the
I am able to create an OptionMenu, see code below. But in my program
I write code given below to read Atom feed. string strUrL = http://loluyede.blogspot.com/atom.xml; WebRequest
I add 'ShockwaveFlashObject' in toolbox and drag it on form and write below code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.