Here a gfci receptacle is added at the end of a row of duplex receptacles for single-location protection. The first outlet is connected to the source and 2-wire cable runs from box to box. All wires are spliced with a pigtail at the devices to pass current from one to the next. The load terminals on the gfci are not used and it does not protect the other receptacles in the circuit.
This diagram illustrates the wiring for a circuit with gfci receptacles followed by a light and switch. By connecting the switch to the load terminals on the gfci, the light is protected against ground faults as well.
Here the source is at the fan/light and a switch loop runs to the wall switch. The source is wired directly to the fan and spliced through to the switch. With this arrangement the light is controlled with the switch and the fan is hardwired for pull-chain control.
This diagram is similar to the one above, but with the electrical source originating at the fixture. Three-wire cable runs from there to the controllers. The neutral wire from the source is spliced directly to the white wire on the fan/light. The hot source wire is spliced to the white on the 3-wire cable and then spliced to the input wires on both controllers at the other end.